Merge branch 'rails_3_1' of github.com:Rulingcom/orbit into rails_3_1
This commit is contained in:
commit
983c86e653
4 files changed
+13
-15
No files matched your search
@@ -22,7 +22,7 @@ class Admin::PagesController < ApplicationController
|
||||
@item.is_published = true
|
||||
@item.parent_id = @parent_item.id rescue nil
|
||||
@designs = Design.all.entries
|
||||
@default_design = @designs.detect {|d| d.title.to_s == 'Bob' }
|
||||
@default_design = Design.first
|
||||
@default_theme = @default_design.themes.detect {|t| t.name.to_s == 'default' }
|
||||
end
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
class Page < Item
|
||||
|
||||
field :content
|
||||
field :theme_id
|
||||
field :theme_id, :type => BSON::ObjectId
|
||||
|
||||
belongs_to :design
|
||||
has_many :page_parts
|
||||
|
||||
Reference in new issue
Block a user