Module: ModifyResource
- Defined in:
- lib/modify_resource.rb,
lib/modify_resource/version.rb
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/modify_resource.rb', line 13 def self.included(base) if defined? Rails and base < ActionController::Base # Add `modify_on` and other methods to the controller base.send :include, ActionController::ModifyResource base.send :include, ActionController::UpdateAs end end |