app/models/redditor/slider_block.rb in redditor-0.1.12 vs app/models/redditor/slider_block.rb in redditor-0.1.14
- old
+ new
@@ -2,14 +2,13 @@
module Redditor
class SliderBlock < ActiveRecord::Base
self.table_name = "redditor_slider_blocks"
- # attr_accessible :page_id, :position
attr_accessor :object_id, :kind
- belongs_to :page, :class_name => "Redditor::Page"
- has_many :images, :as => :imageable, :dependent => :destroy
+ belongs_to :page, class_name: "Redditor::Page", touch: true
+ has_many :images, as: :imageable, dependent: :destroy
accepts_nested_attributes_for :images
def self.model_name
ActiveModel::Name.new(self, nil, 'SliderBlock')
end
\ No newline at end of file