Class: UtopiaData::Resource::Name
- Inherits:
-
ActiveModel::Name
- Object
- ActiveModel::Name
- UtopiaData::Resource::Name
- Defined in:
- lib/utopia_data/resource/naming.rb
Overview
A subclass of ActiveModel::Name which supports the different APIs presented in Rails < 3.1 and > 3.1.
Instance Method Summary collapse
-
#initialize(klass, name = nil) ⇒ Name
constructor
A new instance of Name.
- #route_key ⇒ Object
Constructor Details
#initialize(klass, name = nil) ⇒ Name
Returns a new instance of Name.
61 62 63 |
# File 'lib/utopia_data/resource/naming.rb', line 61 def initialize(klass, name = nil) super(klass, nil, name) end |
Instance Method Details
#route_key ⇒ Object
65 66 67 |
# File 'lib/utopia_data/resource/naming.rb', line 65 def route_key plural end |