chili_pepper 0.1.1 → 0.1.2
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: 17d892da3db9a37bb1e379e8412cbe838f810497
|
|
4
|
+
data.tar.gz: 5ed59d1cf3bf770c9b696546ea73a88e6e9497ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e82e2b9ea961e987b4033e00ff4d552af928bda75a0553f273881fb3e0abe2ec6f7a57a8e57c4e348cdbe69812aac5f8f54189cd97e46935116cf3688711b997
|
|
7
|
+
data.tar.gz: b3d619fcdc3d21b8d2421b490cad8d24036c30c3b0266c1e0cd2bc2fa3007b957caab2231e0a6ad2db744150e8aee9228b1a1620db0dfea61ce27cb9568672a0
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
module ChiliPepper
|
|
16
16
|
class Item < ActiveRecord::Base
|
|
17
17
|
belongs_to :dish, class_name: 'ChiliPepper::Dish'
|
|
18
|
-
belongs_to :section, class_name: 'ChiliPepper::Section'
|
|
18
|
+
belongs_to :section, class_name: 'ChiliPepper::Section', touch: true
|
|
19
19
|
belongs_to :annotation, class_name: 'ChiliPepper::Annotation'
|
|
20
20
|
validates :section, presence: true
|
|
21
21
|
acts_as_list scope: :section
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
module ChiliPepper
|
|
20
20
|
class Section < ActiveRecord::Base
|
|
21
|
-
belongs_to :menu, class_name: "ChiliPepper::Menu"
|
|
21
|
+
belongs_to :menu, class_name: "ChiliPepper::Menu", touch: true
|
|
22
22
|
validates :menu, :name, presence: true
|
|
23
23
|
has_many :items, class_name: "ChiliPepper::Item", dependent: :destroy
|
|
24
24
|
acts_as_list scope: :menu
|
data/lib/chili_pepper/version.rb
CHANGED