Sha256: 94070dc0ffb434d5f7ce5cea5f820ddeadb2003a1803146a1de9e493fc690219

Contents?: true

Size: 309 Bytes

Versions: 4

Compression:

Stored size: 309 Bytes

Contents

class Asset < ActiveRecord::Base
  include AbAdmin::Models::Asset

  attr_accessible :data, :is_main, :original_name, :base_filename
  translates :name, :alt
  attr_accessible *all_translated_attribute_names

  validates_presence_of :data
	
	default_scope -> { order("#{quoted_table_name}.sort_order") }

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.6.1 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.6.0 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.5.0 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.4.0 lib/generators/ab_admin/install/templates/models/asset.rb