Permalink
Browse files

Rails 3.2.3 compat.

  • Loading branch information...
1 parent d39ea75 commit 8fc65ec3f9837d22d59c879fdbdc6e39b5754229 @robyurkowski robyurkowski committed Apr 3, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/models/refinery/portfolio/gallery.rb
  2. +1 −1 app/models/refinery/portfolio/item.rb
@@ -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
@@ -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

0 comments on commit 8fc65ec

Please sign in to comment.