Class: RademadeAdmin::Model::Reflection
- Inherits:
-
Object
- Object
- RademadeAdmin::Model::Reflection
- Defined in:
- lib/rademade_admin/model/reflection.rb,
lib/rademade_admin/model/reflection/data.rb,
lib/rademade_admin/model/reflection/uploader.rb
Defined Under Namespace
Constant Summary
Constants included from Data
Data::ORM_TYPE_ACTIVERECORD, Data::ORM_TYPE_MONGOID
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model, controller, controller_name, inner) ⇒ Reflection
constructor
A new instance of Reflection.
- #nested? ⇒ Boolean
Methods included from Data
#association_fields, #data_adapter, #method_missing, #orm_type
Constructor Details
#initialize(model, controller, controller_name, inner) ⇒ Reflection
Returns a new instance of Reflection.
13 14 15 |
# File 'lib/rademade_admin/model/reflection.rb', line 13 def initialize(model, controller, controller_name, inner) @model, @controller, @controller_name, @inner = model, controller, controller_name, inner end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RademadeAdmin::Model::Reflection::Data
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
11 12 13 |
# File 'lib/rademade_admin/model/reflection.rb', line 11 def controller @controller end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
11 12 13 |
# File 'lib/rademade_admin/model/reflection.rb', line 11 def model @model end |
Instance Method Details
#nested? ⇒ Boolean
17 18 19 |
# File 'lib/rademade_admin/model/reflection.rb', line 17 def nested? @inner end |