Sha256: 33a1aba49646932625d890b0931307237081fa6cbd932774e4eb5a1df71b5881

Contents?: true

Size: 162 Bytes

Versions: 10

Compression:

Stored size: 162 Bytes

Contents

class Asset < ActiveRecord::Base
  include Sunrise::Models::Asset
  
  validates_presence_of :data
	
	default_scope order("#{quoted_table_name}.sort_order")
end 

Version data entries

10 entries across 6 versions & 1 rubygems

Version Path
sunrise-cms-0.5.3 spec/tmp/app/models/defaults/asset.rb
sunrise-cms-0.5.3 lib/generators/sunrise/templates/models/active_record/asset.rb
sunrise-cms-0.5.2 lib/generators/sunrise/templates/models/active_record/asset.rb
sunrise-cms-0.5.2 spec/tmp/app/models/defaults/asset.rb
sunrise-cms-0.5.1 lib/generators/sunrise/templates/models/active_record/asset.rb
sunrise-cms-0.5.0 lib/generators/sunrise/templates/models/active_record/asset.rb
sunrise-cms-0.5.0.rc5 spec/tmp/app/models/defaults/asset.rb
sunrise-cms-0.5.0.rc5 lib/generators/sunrise/templates/models/active_record/asset.rb
sunrise-cms-0.5.0.rc4 spec/tmp/app/models/defaults/asset.rb
sunrise-cms-0.5.0.rc4 lib/generators/sunrise/templates/models/active_record/asset.rb