Class: ClientSideValidations::Middleware::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/client_side_validations/rails_2/middleware.rb

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Base

Returns a new instance of Base.



9
10
11
12
13
# File 'lib/client_side_validations/rails_2/middleware.rb', line 9

def initialize(env)
  self.body    = ''
  self.status  = 200
  self.request = ActionController::Request.new(env)
end