Module: Newshound

Defined in:
lib/newshound.rb,
lib/newshound/railtie.rb,
lib/newshound/version.rb,
lib/newshound/exceptions.rb,
lib/newshound/que_reporter.rb,
lib/newshound/authorization.rb,
lib/newshound/configuration.rb,
lib/newshound/exceptions/base.rb,
lib/newshound/exception_reporter.rb,
lib/newshound/exceptions/solid_errors.rb,
lib/newshound/exceptions/exception_track.rb,
lib/newshound/middleware/banner_injector.rb,
lib/generators/newshound/install/install_generator.rb

Defined Under Namespace

Modules: Authorization, Exceptions, Generators, Middleware Classes: Configuration, Error, ExceptionReporter, QueReporter, Railtie

Constant Summary collapse

VERSION =
"0.2.3"

Class Method Summary collapse

Class Method Details

.authorize_with(&block) ⇒ Object

Allow setting custom authorization logic



25
26
27
# File 'lib/newshound.rb', line 25

def authorize_with(&block)
  configuration.authorize_with(&block)
end

.configurationObject



16
17
18
# File 'lib/newshound.rb', line 16

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



20
21
22
# File 'lib/newshound.rb', line 20

def configure
  yield(configuration)
end