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.
41 42 43 |
# File 'lib/sequel/plugins/active_model.rb', line 41 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.
33 34 35 36 37 38 |
# File 'lib/sequel/plugins/active_model.rb', line 33 def freeze model_name _to_partial_path super end |