Skip to content

Commit

Permalink
Rails 3.2.3 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
robyurkowski committed Apr 3, 2012
1 parent d39ea75 commit 8fc65ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/refinery/portfolio/gallery.rb
Expand Up @@ -12,7 +12,7 @@ class Gallery < Refinery::Core::BaseModel

attr_accessible :title, :body, :lft, :rgt,
:position, :gallery_type, :depth,
:parent_id, :images
:parent_id, :images, :locale

alias_attribute :description, :body

Expand Down
2 changes: 1 addition & 1 deletion app/models/refinery/portfolio/item.rb
Expand Up @@ -4,7 +4,7 @@ class Item < ActiveRecord::Base

translates :title, :caption

attr_accessible :title, :caption, :image_id, :gallery_id, :position
attr_accessible :title, :caption, :image_id, :gallery_id, :position, :locale
validates :gallery_id, :numericality => {:allow_nil => true}
validates :image_id, :presence => true, :numericality => true

Expand Down

0 comments on commit 8fc65ec

Please sign in to comment.