Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/housing_misc/json_slice_render.rb

Direct Known Subclasses

HousingMisc::ApplicationController

Instance Method Summary collapse

Instance Method Details

#render(*args) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/housing_misc/json_slice_render.rb', line 3

def render *args
  #this will override all render calls in all services so edit with CAUTION
  options = args.extract_options!
  param = (MultiJson.load(params['slice_keys']) rescue false)
  args << transform_options(param,options)
  super *args
end