Class: KirguduBase::Settings::Value

Inherits:
BaseModel
  • Object
show all
Includes:
Models::BasicProperties::CreatedBy, Models::BasicProperties::Portal, Models::BasicProperties::UpdatedBy
Defined in:
app/models/kirgudu_base/settings/value.rb

Instance Method Summary collapse

Methods included from Models::BasicProperties::UpdatedBy

included

Methods included from Models::BasicProperties::CreatedBy

included

Methods included from Models::BasicProperties::Portal

included

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

included

Instance Method Details

#load_optionObject



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_nameObject

SCOPES #############################################



26
27
28
# File 'app/models/kirgudu_base/settings/value.rb', line 26

def option_name
	option.name if option
end