Sha256: 825c3f1c1f313b5cea643310849a613b264f696138116031275a4d8a2fda5ad8

Contents?: true

Size: 596 Bytes

Versions: 3

Compression:

Stored size: 596 Bytes

Contents

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enjoy_cms_feedback-0.4.1 config/initializers/enjoy_feedback.rb
enjoy_cms_feedback-0.4.0 config/initializers/enjoy_feedback.rb
enjoy_cms_feedback-0.4.0.beta3 config/initializers/enjoy_feedback.rb