chili_pepper 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c44ce6899a1d3aa6decb4ac457c5f4e71bbb2a59
4
- data.tar.gz: aebab7b8b07893dba5e110bde6a1ad1892245a57
3
+ metadata.gz: 17d892da3db9a37bb1e379e8412cbe838f810497
4
+ data.tar.gz: 5ed59d1cf3bf770c9b696546ea73a88e6e9497ac
5
5
  SHA512:
6
- metadata.gz: 87c4cefbcea26b5591a03091765c27a9c492efd1835ef5defdf381435a1040934ad5d42cba58312bc0ebeb04ace0e5937eb1e187bcf1e7174c80a944fc38dab5
7
- data.tar.gz: 6179b307a2e5beeade63812adca606d2f2b519d293f7ba57cd90bc3e9e85511b5432c452818c682b8c4744a9fb5fd73c344a0d5b95fc25bf543779406acf1d13
6
+ metadata.gz: e82e2b9ea961e987b4033e00ff4d552af928bda75a0553f273881fb3e0abe2ec6f7a57a8e57c4e348cdbe69812aac5f8f54189cd97e46935116cf3688711b997
7
+ data.tar.gz: b3d619fcdc3d21b8d2421b490cad8d24036c30c3b0266c1e0cd2bc2fa3007b957caab2231e0a6ad2db744150e8aee9228b1a1620db0dfea61ce27cb9568672a0
@@ -87,7 +87,7 @@ module ChiliPepper
87
87
  if admin_signed_in?
88
88
  Menu.same_type_menus(@menu.menu_type)
89
89
  else
90
- Menu.same_type_menus(@menu.menu_type)
90
+ Menu.published.same_type_menus(@menu.menu_type)
91
91
  end
92
92
  end
93
93
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ChiliPepper
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chili_pepper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loic Seigland