Sha256: 337d5b8ee45b3de94f6b981815eafa40ae202072ca4d4cb4584a0c7b0d44352b

Contents?: true

Size: 170 Bytes

Versions: 7

Compression:

Stored size: 170 Bytes

Contents

class Asset < ApplicationRecord
  include AbAdmin::Models::Asset

  translates :name, :alt

  validates_presence_of :data

  default_scope -> { order(:sort_order) }

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.11.0 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.10.0 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.9.0 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.8.3 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.8.2 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.8.1 lib/generators/ab_admin/install/templates/models/asset.rb
ab_admin-0.8.0 lib/generators/ab_admin/install/templates/models/asset.rb