Sha256: 2f73ff50c7a231ce0e4f90edd79c7450d2bbe119e1c5aacaa979c1a6c614d948

Contents?: true

Size: 301 Bytes

Versions: 4

Compression:

Stored size: 301 Bytes

Contents

module RailsAdminContentBuilder
  class ContentBuilderImage < ActiveRecord::Base
    self.table_name = 'content_builder_images'

    mount_uploader :image, ContentBuilderImageUploader

    validates :image, presence: true
    belongs_to :content_builder, inverse_of: :content_builder_images
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin_content_builder-1.0.6 app/models/rails_admin_content_builder/content_builder_image.rb
rails_admin_content_builder-1.0.5 app/models/rails_admin_content_builder/content_builder_image.rb
rails_admin_content_builder-1.0.4 app/models/rails_admin_content_builder/content_builder_image.rb
rails_admin_content_builder-1.0.3 app/models/rails_admin_content_builder/content_builder_image.rb