Sha256: 69ae97e72fc51c92ad3ce3785d26c7dc6590d79b00a05af6712085d6c5a572cf

Contents?: true

Size: 241 Bytes

Versions: 11

Compression:

Stored size: 241 Bytes

Contents

ExceptionNotificationServer.configure do |config|
  config.name = 'webhook'
  config.password = '<%= SecureRandom.urlsafe_base64 %>'
  config.access_callback = ->(controller) { controller.current_user && controller.current_user.admin? }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
exception_notification_server-0.0.11 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.10 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.9 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.8 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.7 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.6 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.5 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.4 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.3 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.2 lib/generators/exception_notification_server/templates/exception_notification_server.rb
exception_notification_server-0.0.1 lib/generators/exception_notification_server/templates/exception_notification_server.rb