Module: ApiEngine
- Defined in:
- lib/api_engine.rb,
lib/api_engine/config.rb,
lib/api_engine/engine.rb,
lib/api_engine/version.rb,
app/helpers/api_engine/application_helper.rb,
lib/generators/api_engine/config_generator.rb,
app/controllers/api_engine/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, Generators Classes: ApplicationController, Configuration, Engine
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
-
.config ⇒ Object
Global settings for ApiEngine.
-
.configure {|config| ... } ⇒ Object
Configures global settings for ApiEngine ApiEngine.configure do |config| config.whitelist = [:post] end.
Class Method Details
.config ⇒ Object
Global settings for ApiEngine
14 15 16 |
# File 'lib/api_engine/config.rb', line 14 def self.config @config ||= ApiEngine::Configuration.new end |
.configure {|config| ... } ⇒ Object
Configures global settings for ApiEngine
ApiEngine.configure do |config|
config.whitelist = [:post]
end
9 10 11 |
# File 'lib/api_engine/config.rb', line 9 def self.configure(&block) yield config end |