Sha256: f4c437643c72cc82a4cf7aaad63ae9e54885e428d3eef7e77f06cc98cf0c3a65

Contents?: true

Size: 556 Bytes

Versions: 3

Compression:

Stored size: 556 Bytes

Contents

Enjoy.configure do |config|
  config.ability_manager_config ||= []
  config.ability_manager_config << {
    method: :can,
    model: Enjoy::Goto::Transfer,
    actions: [:read]
  }

  config.ability_admin_config ||= []
  config.ability_admin_config << {
    method: :can,
    model: Enjoy::Goto::Transfer,
    actions: :manage
  }
end

Enjoy.rails_admin_configure do |config|
  if defined?(RailsAdminComments)
    config.action_visible_for :comments, 'Enjoy::Goto::Transfer'
    config.action_visible_for :model_comments, 'Enjoy::Goto::Transfer'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enjoy_cms_goto-0.4.1 config/initializers/enjoy_goto.rb
enjoy_cms_goto-0.4.0 config/initializers/enjoy_goto.rb
enjoy_cms_goto-0.4.0.beta3 config/initializers/enjoy_goto.rb