app/models/redditor/slider_block.rb in redditor-0.1.17 vs app/models/redditor/slider_block.rb in redditor-0.1.20
- old
+ new
@@ -8,9 +8,13 @@
belongs_to :page, class_name: "::Redditor::Page", touch: true
has_many :images, as: :imageable, dependent: :destroy, class_name: "::Redditor::Image"
accepts_nested_attributes_for :images
+ def to_partial_path
+ 'redditor/slider_block'
+ end
+
def self.model_name
ActiveModel::Name.new(self, nil, 'SliderBlock')
end
end
end
\ No newline at end of file