trusty-cms 2.0.18 → 2.0.19

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: 09e8c6d4b2a1dfb48ed866967215fd69cb182ede
4
- data.tar.gz: 79b2a0149af1a393e9c8f33642056121cc7f263a
3
+ metadata.gz: bb1486896338018df5752ee3cc3195ed9ab1ba75
4
+ data.tar.gz: 40467a9b7b279112b6c2d32df8cbd20ef83b6039
5
5
  SHA512:
6
- metadata.gz: 007fc952e5869383ebc65c85da1685b7010f81f07aefb81c6f9470402ab0ecb3f806e0bcc87c79d99d75d8bb9fe5d07a7b21a12a9d10138bea50d71f68cc879f
7
- data.tar.gz: 2913a5623105396f71a7b04c399b672dc9f9283cba97ca9d28e3fa1c9c500113f0ee310f3482a62a7681550f21a260fce80251dc07bc3a7834358ba4274e2ebe
6
+ metadata.gz: 28e046ecf60ce66ff38ee626392035b1b1ac2554287d2ad882f521ed084b3d8d63624e4b28fd0d8486e74c04d9abf5be177651b528df6c3a8b4ea5f10432bd02
7
+ data.tar.gz: ac459c3b8e83a2fc56c95baa49b7e56e79842f372295de0ef596c605a9420bc83f2a4b3d4f4a622f79a982faf94ed20b8fe509c732108ea23943019b0e2a6909
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (2.0.18)
4
+ trusty-cms (2.0.19)
5
5
  RedCloth (~> 4.2)
6
6
  acts_as_tree (~> 2.1)
7
7
  bundler (~> 1.7)
@@ -91,7 +91,7 @@ class Admin::PagesController < Admin::ResourceController
91
91
  end
92
92
 
93
93
  def verify_page_class(page_class)
94
- if page_class.constantize.superclass == Page
94
+ if page_class.constantize.ancestors.include?(Page)
95
95
  page_class.constantize
96
96
  else
97
97
  raise "I'm not allowed to constantize #{page_class}!"
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = "2.0.18"
5
+ VERSION = "2.0.19"
6
6
  end
7
7
  end