Sha256: c6a56df8a2ee99b8c2085024e2ce6fc752bc3ee041a3e0e947d62aa52298c10d

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

module RailsAdminContentBuilder
  class ContentBuilderCategory < ActiveRecord::Base
    extend FriendlyId
    friendly_id :name, use: :slugged

    self.table_name = 'content_builder_categories'

    validates :name, presence: true

    has_many :content_builders, inverse_of: :content_builder_category
  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_category.rb
rails_admin_content_builder-1.0.5 app/models/rails_admin_content_builder/content_builder_category.rb
rails_admin_content_builder-1.0.4 app/models/rails_admin_content_builder/content_builder_category.rb
rails_admin_content_builder-1.0.3 app/models/rails_admin_content_builder/content_builder_category.rb