app/models/refinery/image_page.rb in refinerycms-page-images-2.1.1 vs app/models/refinery/image_page.rb in refinerycms-page-images-3.0.0

- old
+ new

@@ -1,13 +1,9 @@ module Refinery class ImagePage < Refinery::Core::BaseModel belongs_to :image - belongs_to :page, :polymorphic => true + belongs_to :page, polymorphic: true, touch: true - translates :caption if self.respond_to?(:translates) - - attr_accessible :image_id, :position, :locale - self.translation_class.send :attr_accessible, :locale - + translates :caption end end