app/models/kirgudu_base/settings/value.rb in kirgudu_base-0.0.13 vs app/models/kirgudu_base/settings/value.rb in kirgudu_base-0.0.14

- old
+ new

@@ -7,11 +7,11 @@ include ::KirguduBase::Models::BasicProperties::Portal include ::KirguduBase::Models::BasicProperties::CreatedBy include ::KirguduBase::Models::BasicProperties::UpdatedBy - belongs_to :option, class_name: ::System::Settings::Option, foreign_key: :option_id + belongs_to :option, class_name: ::KirguduBase::Settings::Option, foreign_key: :option_id ########################################## VALIDATIONS ####################################### #validates_presence_of :option_id #validates_numericality_of :data, if: @option && @option.value_type_id == ::Core::Common::DataType.id_by_tag('integer'), allow_null: true @@ -26,10 +26,10 @@ def option_name option.name if option end def load_option - @option = ::System::Settings::Option.where(id: self.option_id).first if self.option_id + @option = ::KirguduBase::Settings::Option.where(id: self.option_id).first if self.option_id end end end end