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

Version Path
SFEley-browsercms-3.0.2 app/models/abstract_file_block.rb
buzzware-browsercms-3.0.2 app/models/abstract_file_block.rb
coredumplings-browsercms-3.0.0 app/models/abstract_file_block.rb
we5-browsercms-3.0.1.1 app/models/abstract_file_block.rb
webficient-browsercms-3.0.1 app/models/abstract_file_block.rb
webficient-browsercms-3.0.2 app/models/abstract_file_block.rb
webficient-browsercms-3.0.3 app/models/abstract_file_block.rb
webficient-browsercms-3.0.4 app/models/abstract_file_block.rb
browsercms-3.1.4 app/models/abstract_file_block.rb
browsercms-3.1.3 app/models/abstract_file_block.rb
bf4-browsercms-3.1.0 app/models/abstract_file_block.rb
drujensen-browsercms-3.2.0 app/models/abstract_file_block.rb
browsercmsi-3.1.2 app/models/abstract_file_block.rb
browsercms-3.1.2 app/models/abstract_file_block.rb
browsercms-3.1.1 app/models/abstract_file_block.rb
browsercmsi-3.1.1 app/models/abstract_file_block.rb
browsercmsi-3.1.0 app/models/abstract_file_block.rb
browsercms-3.1.0 app/models/abstract_file_block.rb
we5-browsercms-3.1.0 app/models/abstract_file_block.rb
browsercms-3.0.6 app/models/abstract_file_block.rb