beef-pages 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -32,7 +32,7 @@ class Admin::PagesController < Admin::BaseController
32
32
 
33
33
  def create
34
34
  @page = Page.new(params[:page])
35
- @page.updated_by = current_user
35
+ @page.updated_by = @page.created_by = current_user
36
36
 
37
37
  respond_to do |format|
38
38
  if @page.save
data/app/models/page.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  class Page < ActiveRecord::Base
2
- # http://ramblings.gibberishcode.net/archives/one-activerecord-model-acting-as-a-list-and-tree
3
-
2
+ default_scope :order => 'position ASC'
4
3
  named_scope :top, :conditions => {:parent_id => nil}, :order => :position
5
- named_scope :ordered, :order => 'position ASC'
4
+ # http://ramblings.gibberishcode.net/archives/one-activerecord-model-acting-as-a-list-and-tree
6
5
 
7
6
  has_assets
8
7
  acts_as_content_node
data/pages.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pages}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steve England"]
9
- s.date = %q{2009-07-13}
9
+ s.date = %q{2009-07-14}
10
10
  s.email = %q{steve@wearebeef.co.uk}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-pages
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
  - Steve England
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-13 00:00:00 -07:00
12
+ date: 2009-07-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15