Module: RestfulJson

Defined in:
lib/restful_json/controller.rb,
lib/restful_json/config.rb,
lib/restful_json/version.rb,
lib/restful_json/default_controller.rb

Overview

The Rails 3.x “would you like fries with that” module that includes:

* ActionController::Serialization
* ActionController::StrongParameters
* ActionController::Permittance
* RestfulJson::Controller

Instead of using this, please consider implementing your own module to include these modules so you have more control over it. And in Rails 4+, don’t use this, because ActionController::StrongParameters might already be included.

Defined Under Namespace

Modules: Controller, DefaultController

Constant Summary collapse

CONTROLLER_OPTIONS =
[
  :can_filter_by_default_using, 
  :debug,
  :filter_split,
  :formats,
  :number_of_records_in_a_page,
  :predicate_prefix,
  :return_resource,
  :render_enabled,
  :use_permitters,
  :action_to_permitter,
  :allow_action_specific_params_methods,
  :actions_that_authorize,
  :actions_that_permit,
  :actions_supporting_params_methods,
  :avoid_respond_with,
  :return_error_data,
  :rescue_class,
  :rescue_handlers,
  :apply_includes_to_custom_queries
]
VERSION =
'4.3.1'

Class Method Summary collapse

Class Method Details

.configure(&blk) ⇒ Object



27
# File 'lib/restful_json/config.rb', line 27

def configure(&blk); class_eval(&blk); end