Sha256: bd82097b986a234cc82f5a49902f54e9ef881748988eb48a25fe832d7ec1bbca

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

require 'rails-uploader'

class Asset < ActiveRecord::Base
  include Uploader::Asset
  include Sunrise::Models::Asset

  validates_presence_of :data

  default_scope -> { order("#{quoted_table_name}.sort_order") }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunrise-cms-1.1.1 lib/generators/sunrise/templates/models/active_record/asset.rb
sunrise-cms-1.1.0 lib/generators/sunrise/templates/models/active_record/asset.rb