Sha256: c88884e06b54407bdb1479672e493b52bab4f0cbf5d5b45d6739f2fb4cc1682a

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

module Redditor
  class VideoBlock < ActiveRecord::Base
    self.table_name = "redditor_video_blocks"

    attr_accessor :object_id

    validates :youtube, length: { is: 11 }, youtube: true

    belongs_to :page, class_name: "::Redditor::Page", touch: true

    def to_partial_path
      'redditor/video_block'
    end

    def self.model_name
      ActiveModel::Name.new(self, nil, 'VideoBlock')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redditor-0.1.22 app/models/redditor/video_block.rb
redditor-0.1.20 app/models/redditor/video_block.rb