Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Page inheritance fix

  • Loading branch information...
commit bb7e7676324ad7c9b797fda9690bfe078533258b 1 parent 1321154
@pyromaniac pyromaniac authored
View
4 Gemfile
@@ -2,8 +2,8 @@ source "http://rubygems.org"
gem 'rails'
gem 'liquid', :git => 'git://github.com/puffer/liquid.git'
-gem 'nested_set', :git => 'git://github.com/pyromaniac/nested_set.git'
-gem 'puffer', '>= 0.0.17'
+gem 'nested_set', :git => 'git://github.com/skyeagle/nested_set.git'
+gem 'puffer', '>= 0.0.19'
group :development, :test, :pg_test do
gem "capybara", ">= 0.4.0"
View
4 Gemfile.lock
@@ -5,8 +5,8 @@ GIT
liquid (2.2.2)
GIT
- remote: git://github.com/pyromaniac/nested_set.git
- revision: 32c0d948cfccdb81324bc127daa3c5077d89be22
+ remote: git://github.com/skyeagle/nested_set.git
+ revision: d12b3333902b964a6b09f382a10e903cc4eeb579
specs:
nested_set (1.6.4)
activerecord (>= 3.0.0)
View
2  README.md
@@ -1,6 +1,8 @@
# Warning! This puffer_pages version requires liquid from puffer repo. So, add following line to your Gemfile until new liquid version will release.
<pre>gem 'liquid', :git => 'git://github.com/puffer/liquid.git'</pre>
I hope, it's temporarly
+Also, nested set is better install from repo too.
+<pre>gem 'nested_set', :git => 'git://github.com/skyeagle/nested_set.git'</pre>
# Puffer_pages is lightweight rails 3 CMS
View
5 app/models/puffer_pages/page.rb
@@ -1,7 +1,10 @@
class PufferPages::Page < ActiveRecord::Base
self.abstract_class = true
- acts_as_nested_set
+ def self.inherited base
+ base.acts_as_nested_set
+ super
+ end
scope :published, where(:status => 'published')
Please sign in to comment.
Something went wrong with that request. Please try again.