fix get params for rails 4

if defined?(Rails)
args = env['action_dispatch.request.request_parameters'] || env['rack.request.form_hash']
else
end