Module: SecureEscrow::Railtie::Routing

Defined in:
lib/secure_escrow/railtie.rb

Instance Method Summary collapse

Instance Method Details

#escrow(*args, &block) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/secure_escrow/railtie.rb', line 7

def escrow *args, &block
  options = args.extract_options!
  defaults = options[:defaults] || {}
  defaults[:escrow] = true
  options[:defaults] = defaults
  args.push options
  post *args, &block
end