Skip to content

Commit

Permalink
Page inheritance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pyromaniac committed Mar 10, 2011
1 parent 1321154 commit bb7e767
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 4 additions & 1 deletion app/models/puffer_pages/page.rb
Original file line number Diff line number Diff line change
@@ -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')

Expand Down

0 comments on commit bb7e767

Please sign in to comment.