module Sequel::Plugins::ActiveModel::ClassMethods

  1. lib/sequel/plugins/active_model.rb

Methods

Public Instance

  1. _to_partial_path
  2. freeze

Included modules

  1. ::ActiveModel::Naming

Public Instance methods

_to_partial_path()

Class level cache for to_partial_path.

[show source]
   # File lib/sequel/plugins/active_model.rb
41 def _to_partial_path
42   @_to_partial_path ||= "#{underscore(pluralize(to_s))}/#{underscore(demodulize(to_s))}".freeze
43 end
freeze()

Cache model_name and to_partial path value before freezing.

[show source]
   # File lib/sequel/plugins/active_model.rb
33 def freeze
34   model_name
35   _to_partial_path
36 
37   super
38 end