activeadmin-selleo-cms 0.0.39 → 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ module ActiveadminSelleoCms
25
25
  scope :latest, ->(n) { published.reorder("published_at DESC").limit(n) }
26
26
  scope :most_read, ->(n) { published.reorder("views DESC").limit(n) }
27
27
  scope :with_layout, ->(layout_name) { where(layout_name: layout_name) }
28
- scope :with_setting_value, ->(key, value) { where("activeadmin_selleo_cms_pages.settings ~ '#{key}:\\s?\\W?#{value}\\W?\\s*'") }
28
+ scope :with_setting_value, ->(key, value) { where("activeadmin_selleo_cms_pages.settings ~ '#{key}:\\s?\\W?#{value}\\W?\\s'") }
29
29
  scope :with_setting, ->(key) { where("activeadmin_selleo_cms_pages.settings ~ '#{key}:\\s?'") }
30
30
 
31
31
  before_validation do
@@ -11,7 +11,7 @@
11
11
  = form.input :layout_name, collection: ActiveadminSelleoCms::Layout.all.sort, include_blank: false, hint: "The form will reload on change"
12
12
  = form.input :parent_id, as: :select, collection: nested_set_options(ActiveadminSelleoCms::Page, @page) {|i| "#{'-' * i.level} #{i.title}" }
13
13
  = form.input :show_in_menu, as: :boolean
14
- = form.input :is_published, as: :boolean, input_html: { checked: @page.published_at.present? }
14
+ = form.input :is_published, as: :boolean
15
15
  = form.input :published_at, as: :datetimepicker
16
16
  = form.input :redirect_to_first_sub_page, as: :boolean
17
17
  = form.input :is_link_url, as: :boolean, input_html: { checked: @page.link_url.present? }
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSelleoCms
2
- VERSION = "0.0.39"
2
+ VERSION = "0.0.40"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-selleo-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39
4
+ version: 0.0.40
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-13 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails