Module: RademadeAdmin::InstanceOptions
- Included in:
- ModelController
- Defined in:
- app/services/model_controller/instance_options.rb
Instance Attribute Summary collapse
-
#form_fields_with_locale ⇒ Object
readonly
Returns the value of attribute form_fields_with_locale.
-
#form_fields_without_locale ⇒ Object
readonly
Returns the value of attribute form_fields_without_locale.
-
#item_name ⇒ Object
readonly
Returns the value of attribute item_name.
-
#list_fields ⇒ Object
readonly
Returns the value of attribute list_fields.
-
#model_class ⇒ Object
readonly
Returns the value of attribute model_class.
-
#model_info ⇒ Object
readonly
Returns the value of attribute model_info.
-
#model_name ⇒ Object
readonly
Returns the value of attribute model_name.
Instance Method Summary collapse
- #filter_fields ⇒ Object
- #load_field_options ⇒ Object
- #load_model_options ⇒ Object
- #load_options ⇒ Object
- #load_template_options ⇒ Object
- #origin_fields ⇒ Object
Instance Attribute Details
#form_fields_with_locale ⇒ Object (readonly)
Returns the value of attribute form_fields_with_locale.
5 6 7 |
# File 'app/services/model_controller/instance_options.rb', line 5 def form_fields_with_locale @form_fields_with_locale end |
#form_fields_without_locale ⇒ Object (readonly)
Returns the value of attribute form_fields_without_locale.
5 6 7 |
# File 'app/services/model_controller/instance_options.rb', line 5 def form_fields_without_locale @form_fields_without_locale end |
#item_name ⇒ Object (readonly)
Returns the value of attribute item_name.
5 6 7 |
# File 'app/services/model_controller/instance_options.rb', line 5 def item_name @item_name end |
#list_fields ⇒ Object (readonly)
Returns the value of attribute list_fields.
5 6 7 |
# File 'app/services/model_controller/instance_options.rb', line 5 def list_fields @list_fields end |
#model_class ⇒ Object (readonly)
Returns the value of attribute model_class.
5 6 7 |
# File 'app/services/model_controller/instance_options.rb', line 5 def model_class @model_class end |
#model_info ⇒ Object (readonly)
Returns the value of attribute model_info.
5 6 7 |
# File 'app/services/model_controller/instance_options.rb', line 5 def model_info @model_info end |
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name.
5 6 7 |
# File 'app/services/model_controller/instance_options.rb', line 5 def model_name @model_name end |
Instance Method Details
#filter_fields ⇒ Object
31 32 33 |
# File 'app/services/model_controller/instance_options.rb', line 31 def filter_fields @model_info.data_items.filter_fields end |
#load_field_options ⇒ Object
21 22 23 24 25 |
# File 'app/services/model_controller/instance_options.rb', line 21 def @list_fields = @model_info.data_items.list_fields @form_fields_without_locale = @model_info.data_items.form_fields_without_locale @form_fields_with_locale = @model_info.data_items.form_fields_with_locale end |
#load_model_options ⇒ Object
14 15 16 17 18 19 |
# File 'app/services/model_controller/instance_options.rb', line 14 def @model_info = self.class.model_info @model_name = self.class.model_name @model_class = self.class.model_class @item_name = self.class.item_name end |
#load_options ⇒ Object
39 40 41 42 43 |
# File 'app/services/model_controller/instance_options.rb', line 39 def end |
#load_template_options ⇒ Object
35 36 37 |
# File 'app/services/model_controller/instance_options.rb', line 35 def @form_template_path ||= form_template_path end |
#origin_fields ⇒ Object
27 28 29 |
# File 'app/services/model_controller/instance_options.rb', line 27 def origin_fields @model_info.data_items.origin_fields end |