Sha256: 2f8d1c9e55280378eef90b83bf6575642c67ffb303db38d05fe4ab7f43582aa5

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

# coding: utf-8

module Redditor
  class SliderBlock < ActiveRecord::Base
    self.table_name = "redditor_slider_blocks"

    attr_accessor :object_id, :kind

    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 self.model_name
      ActiveModel::Name.new(self, nil, 'SliderBlock')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redditor-0.1.17 app/models/redditor/slider_block.rb
redditor-0.1.16 app/models/redditor/slider_block.rb
redditor-0.1.15 app/models/redditor/slider_block.rb