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)
-
- (Name) initialize(klass, name = nil)
constructor
A new instance of Name.
- - (Object) route_key
Constructor Details
- (Name) initialize(klass, name = nil)
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
- (Object) route_key
65 66 67 |
# File 'lib/utopia_data/resource/naming.rb', line 65 def route_key plural end |