Module: Sequel::Plugins::ActiveModel::ClassMethods
- Includes:
- ActiveModel::Naming
- Defined in:
- lib/sequel/plugins/active_model.rb
Instance Method Summary collapse
-
#_to_partial_path ⇒ Object
Class level cache for to_partial_path.
-
#freeze ⇒ Object
Cache model_name and to_partial path value before freezing.
Instance Method Details
#_to_partial_path ⇒ Object
Class level cache for to_partial_path.
44 45 46 |
# File 'lib/sequel/plugins/active_model.rb', line 44 def _to_partial_path @_to_partial_path ||= "#{underscore(pluralize(to_s))}/#{underscore(demodulize(to_s))}".freeze end |
#freeze ⇒ Object
Cache model_name and to_partial path value before freezing.
36 37 38 39 40 41 |
# File 'lib/sequel/plugins/active_model.rb', line 36 def freeze model_name _to_partial_path super end |