Module: Hammock::ResourceMappingHooks
- Defined in:
- lib/hammock/resource_mapping_hooks.rb
Defined Under Namespace
Modules: Methods
Constant Summary collapse
- MixInto =
ActionController::Resources
- Deps =
[ModulePatches]
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
6 7 8 9 10 11 12 13 |
# File 'lib/hammock/resource_mapping_hooks.rb', line 6 def self.included base # :nodoc: base.send :include, Methods base.class_eval { alias_method_chain_once :map_resource, :hammock_route_map alias_method_chain_once :map_singleton_resource, :hammock_route_map } end |