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

Class Method Details

.configObject

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

Yields:



9
10
11
# File 'lib/api_engine/config.rb', line 9

def self.configure(&block)
  yield config
end