kirgudu_base 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 325de20e94b6033ded4ae430d29985a69f1e1a93
|
|
4
|
+
data.tar.gz: c905d460a2b0284d8ed61ef238aa508d7bafe5f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 286704005b61dd016f5b3324e3624c27b17e547c5ba4d0effe7e6505b50da490fb569a9df0b2a14e1b43442d0ab0f245e33751d782652265b20489ee9d432fc3
|
|
7
|
+
data.tar.gz: 89c39284db84b3b6d20281b81eac9331910538d13648f7c47933794846f8b8ef732dd543590621bb00407a3e9f737701c8918a8f48938d2bd3934ca04995f92d
|
|
@@ -9,7 +9,7 @@ module KirguduBase
|
|
|
9
9
|
include ::KirguduBase::Models::BasicProperties::CreatedBy
|
|
10
10
|
include ::KirguduBase::Models::BasicProperties::UpdatedBy
|
|
11
11
|
|
|
12
|
-
has_many :options, class_name: ::
|
|
12
|
+
has_many :options, class_name: ::KirguduBase::Settings::Option, foreign_key: :group_id, dependent: :destroy
|
|
13
13
|
########################################## VALIDATIONS #######################################
|
|
14
14
|
|
|
15
15
|
validates_presence_of :name
|
|
@@ -9,8 +9,8 @@ module KirguduBase
|
|
|
9
9
|
include ::KirguduBase::Models::BasicProperties::UpdatedBy
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
belongs_to :group, class_name: ::
|
|
13
|
-
has_one :option_value, class_name: ::
|
|
12
|
+
belongs_to :group, class_name: ::KirguduBase::Settings::Group, foreign_key: :group_id
|
|
13
|
+
has_one :option_value, class_name: ::KirguduBase::Settings::Value, foreign_key: :option_id
|
|
14
14
|
|
|
15
15
|
########################################## VALIDATIONS #######################################
|
|
16
16
|
|
|
@@ -9,7 +9,7 @@ module KirguduBase
|
|
|
9
9
|
include ::KirguduBase::Models::BasicProperties::CreatedBy
|
|
10
10
|
include ::KirguduBase::Models::BasicProperties::UpdatedBy
|
|
11
11
|
|
|
12
|
-
belongs_to :option, class_name: ::
|
|
12
|
+
belongs_to :option, class_name: ::KirguduBase::Settings::Option, foreign_key: :option_id
|
|
13
13
|
|
|
14
14
|
########################################## VALIDATIONS #######################################
|
|
15
15
|
|
|
@@ -28,7 +28,7 @@ module KirguduBase
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
def load_option
|
|
31
|
-
@option = ::
|
|
31
|
+
@option = ::KirguduBase::Settings::Option.where(id: self.option_id).first if self.option_id
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kirgudu_base
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mitrofanov Dmitry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|