Sha256: cc7b83ad97ef61eaaf5083c6483bff1d3eef2b11eb143a94500b863ef2ea70f7

Contents?: true

Size: 305 Bytes

Versions: 8

Compression:

Stored size: 305 Bytes

Contents

module RailsAdminFeaturedContent
  class FeaturedContentImage < ActiveRecord::Base
    self.table_name = 'featured_content_images'

    validates :image, presence: true
    mount_uploader :image, FeaturedContentImageUploader
    belongs_to :featured_content, inverse_of: :featured_content_images
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_admin_featured_content-1.2.3 app/models/rails_admin_featured_content/featured_content_image.rb
rails_admin_featured_content-1.2.2 app/models/rails_admin_featured_content/featured_content_image.rb
rails_admin_featured_content-1.2.1 app/models/rails_admin_featured_content/featured_content_image.rb
rails_admin_featured_content-1.1.0 app/models/rails_admin_featured_content/featured_content_image.rb
rails_admin_featured_content-1.0.6 app/models/rails_admin_featured_content/featured_content_image.rb
rails_admin_featured_content-1.0.5 app/models/rails_admin_featured_content/featured_content_image.rb
rails_admin_featured_content-1.0.4 app/models/rails_admin_featured_content/featured_content_image.rb
rails_admin_featured_content-1.0.3 app/models/rails_admin_featured_content/featured_content_image.rb