Sha256: f8e701ff40b4ed5e8cc52a4bd41511e874a0e0aaf742f4c1c75e06652fee9924
Contents?: true
Size: 328 Bytes
Versions: 3
Compression:
Stored size: 328 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 end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
nate-browsercms-3.0.210 | app/models/abstract_file_block.rb |
nate-browsercms-3.0.211 | app/models/abstract_file_block.rb |
browsercms-3.0.0 | app/models/abstract_file_block.rb |