Sha256: b8572b5d97e84bfd998287cfda8bf9bd1bf8c32dfde0346e05498136fc1d1ee6

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

class <%= camelcased_class_name %> < Hancock::Gallery::OriginalImage

  ############# rails_admin ##############
  def self.rails_admin_add_fields
    super
  end

  def self.rails_admin_add_config(config)
    super(config)
  end

  def self.admin_can_user_defined_actions
    [].freeze
  end
  def self.admin_cannot_user_defined_actions
    [].freeze
  end
  def self.manager_can_user_defined_actions
    [].freeze
  end
  def self.manager_cannot_user_defined_actions
    [].freeze
  end
  def self.rails_admin_user_defined_visible_actions
    [].freeze
  end

  # rails_admin(&Hancock::Gallery::Admin::OriginalImage.config(%NAV_LABEL%, %VISIBLE%, rails_admin_add_fields) { |config|
  # rails_admin(&Hancock::Gallery::Admin::OriginalImage.config(%NAV_LABEL%, rails_admin_add_fields) { |config|
  # rails_admin(&Hancock::Gallery::Admin::OriginalImage.config(%VISIBLE%, rails_admin_add_fields) { |config|
  rails_admin(&Hancock::Gallery::Admin::OriginalImage.config(rails_admin_add_fields) { |config|
    rails_admin_add_config(config)
  })
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hancock_cms_gallery-1.0.2 lib/generators/hancock/gallery/models/templates/original_image.erb