instance method
test_to_partial_path
Ruby on Rails 4.2.9
Since v3.2.22.5Signature
test_to_partial_path()
Responds to to_partial_path
Returns a string giving a relative path. This is used for looking up partials. For example, a BlogPost model might return “blog_posts/blog_post”
Source
# File activemodel/lib/active_model/lint.rb, line 57
def test_to_partial_path
assert model.respond_to?(:to_partial_path), "The model should respond to to_partial_path"
assert_kind_of String, model.to_partial_path
end
Defined in activemodel/lib/active_model/lint.rb line 57
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Lint::Tests