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
24 25 26 |
# File 'lib/barrister-rails.rb', line 24 def persisted? !id.nil? end |
#to_param ⇒ Object
for building a route
19 20 21 |
# File 'lib/barrister-rails.rb', line 19 def to_param "#{id}" end |