Module: RestApiGenerator
- Defined in:
- lib/rest_api_generator.rb,
lib/rest_api_generator/rails.rb,
lib/rest_api_generator/config.rb,
lib/rest_api_generator/version.rb,
lib/rest_api_generator/orderable.rb,
lib/rest_api_generator/filterable.rb,
lib/rest_api_generator/custom_error.rb,
lib/rest_api_generator/serializable.rb,
lib/rest_api_generator/error_handler.rb,
lib/rest_api_generator/helpers/render.rb,
lib/generators/rest_api_generator/helpers.rb,
lib/rest_api_generator/controller_callbacks.rb,
lib/generators/rest_api_generator/resource_generator.rb,
app/controllers/rest_api_generator/resource_controller.rb,
lib/generators/rest_api_generator/spec/rspec_generator.rb,
lib/generators/rest_api_generator/spec/rswag_generator.rb,
app/controllers/rest_api_generator/application_controller.rb,
app/controllers/rest_api_generator/child_resource_controller.rb
Defined Under Namespace
Modules: ControllerCallbacks, ErrorHandler, Filterable, Helpers, Orderable, Serializable, Spec
Classes: ApplicationController, ChildResourceController, Config, CustomError, Engine, Error, ResourceController, ResourceGenerator
Constant Summary
collapse
- VERSION =
"0.4.0"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
17
18
19
|
# File 'lib/rest_api_generator.rb', line 17
def self.configuration
@config ||= Config.new
end
|
21
22
23
|
# File 'lib/rest_api_generator.rb', line 21
def self.configure
yield(configuration) if block_given?
end
|