Object
@private
# File lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb, line 15 def description "source => #{source}" end
# File lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb, line 19 def matches?(subject) self.subject = ModelReflector.new(subject, name) if option_verifier.correct_for_string?(:source, source) true else self.missing_option = "#{name} should have #{source} as source option" false end end
Generated with the Darkfish Rdoc Generator 2.