Class: Barrister::Rails::Client::BaseEtherealModel
- Inherits:
-
Object
- Object
- Barrister::Rails::Client::BaseEtherealModel
- Includes:
- ActiveAttr::Model
- Defined in:
- lib/barrister-rails.rb
Instance Method Summary collapse
-
#persisted? ⇒ Boolean
for determining inflection.
-
#to_param ⇒ Object
for building a route.
Instance Method Details
#persisted? ⇒ Boolean
for determining inflection
23 24 25 |
# File 'lib/barrister-rails.rb', line 23 def persisted? !id.nil? end |
#to_param ⇒ Object
for building a route
18 19 20 |
# File 'lib/barrister-rails.rb', line 18 def to_param "#{id}" end |