Class: KirguduBase::Settings::Value
- Includes:
- Models::BasicProperties::CreatedBy, Models::BasicProperties::Portal, Models::BasicProperties::UpdatedBy
- Defined in:
- app/models/kirgudu_base/settings/value.rb
Instance Method Summary collapse
- #load_option ⇒ Object
-
#option_name ⇒ Object
SCOPES #############################################.
Methods included from Models::BasicProperties::UpdatedBy
Methods included from Models::BasicProperties::CreatedBy
Methods included from Models::BasicProperties::Portal
Methods inherited from BaseModel
apply_filters_to_query, belongs_to_module?, #belongs_to_module?, #deletion_status_name, #for_form_params, for_form_params, #for_sql_order_by, for_sql_order_by, #for_sql_order_by_inverted, for_sql_order_by_inverted, #formatted_created_at, #formatted_updated_at, get_entries, get_entry_by_id, get_entry_name, #is_active_label, #is_html_label, #is_subclass?, is_subclass?, #name_for_breadcrumbs, to_i18n, #to_i18n, #to_s
Methods included from Models::Sorting::ClassMethods
#allowed_fields_to_sort, #allowed_fields_to_sort=, #default_sort_field, #default_sort_field=, #invert_sort_order, #sanitize_sort_order
Methods included from Models::UncloneableProperties
#unclonable_properties_set, #unclonable_property
Methods included from Models::Sorting
Instance Method Details
#load_option ⇒ Object
30 31 32 |
# File 'app/models/kirgudu_base/settings/value.rb', line 30 def load_option @option = ::KirguduBase::Settings::Option.where(id: self.option_id).first if self.option_id end |
#option_name ⇒ Object
SCOPES #############################################
26 27 28 |
# File 'app/models/kirgudu_base/settings/value.rb', line 26 def option_name option.name if option end |