Module: Saucy::MapperExtensions

Defined in:
lib/saucy/routing_extensions.rb

Instance Method Summary collapse

Instance Method Details

#through(parent, &block) ⇒ Object



9
10
11
12
13
# File 'lib/saucy/routing_extensions.rb', line 9

def through(parent, &block)
  (@through_scope ||= []) << parent
  resources(parent, :only => [], &block)
  @through_scope.pop
end