Flowdock
method

new

Importance_0
v2.3.2 - Show latest stable - 0 notes - Class: ActiveSupport::ModelName
new(name) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.