Sha256: 7040c4777d0043f88d9c6285f16ebfc24b42299b9b3bb637d854e2548b888fb0

Contents?: true

Size: 173 Bytes

Versions: 12

Compression:

Stored size: 173 Bytes

Contents

class Banner < ActiveRecord::Base
  dragonfly_accessor :image
  validates_presence_of :url
  belongs_to :banner_group, required: false

  def releaf_title
    url
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
releaf-core-3.1.0 lib/generators/dummy/templates/models/banner.rb
releaf-core-3.0.3 lib/generators/dummy/templates/models/banner.rb
releaf-core-3.0.2 lib/generators/dummy/templates/models/banner.rb
releaf-core-3.0.1 lib/generators/dummy/templates/models/banner.rb
releaf-core-3.0.0 lib/generators/dummy/templates/models/banner.rb
releaf-core-2.2.1 lib/generators/dummy/templates/models/banner.rb
releaf-core-2.2.0 lib/generators/dummy/templates/models/banner.rb
releaf-core-2.1.2 lib/generators/dummy/templates/models/banner.rb
releaf-core-2.1.1 lib/generators/dummy/templates/models/banner.rb
releaf-core-2.1.0 lib/generators/dummy/templates/models/banner.rb
releaf-core-2.0.1 lib/generators/dummy/templates/models/banner.rb
releaf-core-2.0.0 lib/generators/dummy/templates/models/banner.rb