Module: Newshound
- Defined in:
- lib/newshound.rb,
lib/newshound/jobs.rb,
lib/newshound/railtie.rb,
lib/newshound/version.rb,
lib/newshound/jobs/que.rb,
lib/newshound/warnings.rb,
lib/newshound/jobs/base.rb,
lib/newshound/exceptions.rb,
lib/newshound/job_reporter.rb,
lib/newshound/authorization.rb,
lib/newshound/configuration.rb,
lib/newshound/warnings/base.rb,
lib/newshound/exceptions/base.rb,
lib/newshound/warning_reporter.rb,
lib/newshound/exception_reporter.rb,
lib/newshound/exceptions/bugsink.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, Jobs, Middleware, Warnings Classes: Configuration, Error, ExceptionReporter, JobReporter, Railtie, WarningReporter
Constant Summary collapse
- VERSION =
"1.0.3"
Class Method Summary collapse
-
.authorize_with(&block) ⇒ Object
Allow setting custom authorization logic.
- .configuration ⇒ Object
- .configure {|configuration| ... } ⇒ Object
Class Method Details
.authorize_with(&block) ⇒ Object
Allow setting custom authorization logic
28 29 30 |
# File 'lib/newshound.rb', line 28 def (&block) configuration.(&block) end |
.configuration ⇒ Object
19 20 21 |
# File 'lib/newshound.rb', line 19 def configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
23 24 25 |
# File 'lib/newshound.rb', line 23 def configure yield(configuration) end |