lib/memento/action_controller_methods.rb in memento-0.3.0 vs lib/memento/action_controller_methods.rb in memento-0.3.1

- old
+ new

@@ -1,19 +1,18 @@ class Memento module ActionControllerMethods - private - def memento block_result = nil memento_session = Memento.instance.memento(current_user) do block_result = yield end if memento_session response.headers["X-Memento-Session-Id"] = memento_session.id.to_s end block_result end + private :memento end end ActionController::Base.send(:include, Memento::ActionControllerMethods) if defined?(ActionController::Base) \ No newline at end of file