Sha256: 8ed079e39715a3fffe7a25116ae999a440a3fa4d027d36aa9b79d13980c568f5

Contents?: true

Size: 794 Bytes

Versions: 26

Compression:

Stored size: 794 Bytes

Contents

RailsAdmin.config do |config|
  config.actions do
    content_builder do
      only ['RailsAdminContentBuilder::ContentBuilder']
    end

    config.model 'RailsAdminContentBuilder::ContentBuilder' do
      list do
        field :id
        field :title
        field :date_publish
        field :content_builder_category
        field :status
      end
      edit do
        field :title
        field :date_publish
        field :written_by
        field :content_builder_category
      end
    end

    config.model 'RailsAdminContentBuilder::ContentBuilderCategory' do
      list do
        field :id
        field :name
      end
      edit do
        field :name
      end
    end

    config.model 'RailsAdminContentBuilder::ContentBuilderImage' do
      visible false
    end
  end
end

Version data entries

26 entries across 19 versions & 3 rubygems

Version Path
rails_admin_content_builder_rails_6-1.2.0 lib/generators/templates/rails_admin_content_builder.rb
rails_admin_content_builder_rails_6-1.1.0 lib/rails_admin_content_builder_rails_6/generators/templates/rails_admin_content_builder.rb
rails_admin_content_builder_rails_6-1.0.1 lib/rails_admin_content_builder_rails_6/generators/templates/rails_admin_content_builder.rb
rails_admin_content_builder_rails_6-1.0.0 lib/rails_admin_content_builder_rails_6/generators/templates/rails_admin_content_builder.rb
rails_admin_content_builder-1.3.0 lib/generators/templates/rails_admin_content_builder.rb
rails_admin_content_builder-1.3.0 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_featured_content-1.2.3 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_featured_content-1.2.2 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_featured_content-1.2.1 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_content_builder-1.2.0 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_content_builder-1.2.0 lib/generators/templates/rails_admin_content_builder.rb
rails_admin_featured_content-1.1.0 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_content_builder-1.1.0 lib/generators/templates/rails_admin_content_builder.rb
rails_admin_content_builder-1.1.0 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_featured_content-1.0.6 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_content_builder-1.0.6 lib/generators/templates/rails_admin_content_builder.rb
rails_admin_content_builder-1.0.6 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_content_builder-1.0.5 spec/dummy/config/initializers/rails_admin_content_builder.rb
rails_admin_content_builder-1.0.5 lib/generators/templates/rails_admin_content_builder.rb
rails_admin_featured_content-1.0.5 spec/dummy/config/initializers/rails_admin_content_builder.rb