Module: WithModel::Methods
- Defined in:
- lib/with_model/methods.rb
Overview
Extended into all ActiveRecord models created by with_model.
Instance Method Summary collapse
-
#with_model? ⇒ Boolean
Since model classes not created by with_model won't have this method, one should instead test
respond_to?(:with_model?)
.
Instance Method Details
#with_model? ⇒ Boolean
Since model classes not created by with_model won't have this
method, one should instead test respond_to?(:with_model?)
.
8 9 10 |
# File 'lib/with_model/methods.rb', line 8 def with_model? true end |