method
new
v2.2.1 -
Show latest stable
- Class:
ActiveSupport::ModelName
new(name)public
No documentation available.
# File activesupport/lib/active_support/core_ext/module/model_naming.rb, line 5
def initialize(name)
super
@singular = underscore.tr('/', '_').freeze
@plural = @singular.pluralize.freeze
@cache_key = tableize.freeze
@partial_path = "#{@cache_key}/#{demodulize.underscore}".freeze
end