Sha256: f2d8b89e13d2d8f640dc583d490936cd9a666cedaf724e098fc93dd67bca2cb3
Contents?: true
Size: 477 Bytes
Versions: 12
Compression:
Stored size: 477 Bytes
Contents
# coding: utf-8 module Redditor class TextBlock < ActiveRecord::Base self.table_name = "redditor_text_blocks" # attr_accessible :body, :page_id, :position, :temp_id, :translations_attributes attr_accessor :temp_id belongs_to :page, :class_name => "Redditor::Page" default_scope -> { order(:position) } validates :position, :body, :presence => true def self.model_name ActiveModel::Name.new(self, nil, 'TextBlock') end end end
Version data entries
12 entries across 12 versions & 1 rubygems