Class: Admin::Positionable
- Inherits:
-
Object
- Object
- Admin::Positionable
- Extended by:
- ActiveModel::Naming, ActiveModel::Translation
- Includes:
- ActiveModel::Conversion, ActiveModel::Validations
- Defined in:
- app/controllers/admin/positionables_controller.rb
Instance Attribute Summary collapse
-
#positionables ⇒ Object
Returns the value of attribute positionables.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(positionables) ⇒ Positionable
constructor
A new instance of Positionable.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(positionables) ⇒ Positionable
Returns a new instance of Positionable.
10 11 12 |
# File 'app/controllers/admin/positionables_controller.rb', line 10 def initialize(positionables) @positionables = positionables end |
Instance Attribute Details
#positionables ⇒ Object
Returns the value of attribute positionables.
9 10 11 |
# File 'app/controllers/admin/positionables_controller.rb', line 9 def positionables @positionables end |
Instance Method Details
#id ⇒ Object
18 19 20 |
# File 'app/controllers/admin/positionables_controller.rb', line 18 def id @positionables.klass.name end |
#persisted? ⇒ Boolean
14 15 16 |
# File 'app/controllers/admin/positionables_controller.rb', line 14 def persisted? true end |