Module: Straides
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/straides.rb,
lib/straides/railtie.rb,
lib/straides/version.rb,
lib/straides/configuration.rb,
lib/straides/return_http_code_error.rb
Defined Under Namespace
Classes: Configuration, Railtie, ReturnHttpCodeError
Constant Summary collapse
- VERSION =
"0.1.4"
Class Method Summary collapse
-
.configure {|Configuration.instance| ... } ⇒ Object
Helper method for configuring Straides in an initializer file.
Class Method Details
.configure {|Configuration.instance| ... } ⇒ Object
Helper method for configuring Straides in an initializer file.
Example:
Straides::Configuration.configure do |config|
config.auto_load = false
end
26 27 28 29 |
# File 'lib/straides/configuration.rb', line 26 def self.configure raise RuntimeError("ERROR: You must provide a block to Straides.configure.") unless block_given? yield Configuration.instance end |