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
26 27 28 |
# File 'app/services/model_controller/instance_options.rb', line 26 def filter_fields @model_info.data_items.filter_fields end |
#load_field_options ⇒ Object
16 17 18 19 20 |
# File 'app/services/model_controller/instance_options.rb', line 16 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
9 10 11 12 13 14 |
# File 'app/services/model_controller/instance_options.rb', line 9 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
34 35 36 37 38 |
# File 'app/services/model_controller/instance_options.rb', line 34 def end |
#load_template_options ⇒ Object
30 31 32 |
# File 'app/services/model_controller/instance_options.rb', line 30 def @form_template_path ||= form_template_path end |
#origin_fields ⇒ Object
22 23 24 |
# File 'app/services/model_controller/instance_options.rb', line 22 def origin_fields @model_info.data_items.origin_fields end |