Sha256: 4f2cc417545de767bd88dec67c3716716732a9f61644f556a7ac9c58ba5f4348
Contents?: true
Size: 370 Bytes
Versions: 31
Compression:
Stored size: 370 Bytes
Contents
class AbstractFileBlock < ActiveRecord::Base set_table_name "file_blocks" validates_presence_of :name named_scope :by_section, lambda { |section| { :include => {:attachment => :section_node }, :conditions => ["section_nodes.section_id = ?", section.id] } } def path attachment_file_path end def self.publishable? true end end
Version data entries
31 entries across 31 versions & 10 rubygems