lib/adeia/controller_resource.rb in adeia-0.10.0 vs lib/adeia/controller_resource.rb in adeia-0.10.1

- old
+ new

@@ -31,11 +31,11 @@ @action_name = args.fetch(:action, @controller.action_name) @controller_name = args.fetch(:controller, @controller.controller_path) @token = args.fetch(:token, @controller.request.GET[:token]) @resource = args[:resource] @user = @controller.current_user - store_location + @controller.store_location end def load_resource begin @resource = resource_class.find(@controller.params.fetch(:id)) @@ -112,19 +112,9 @@ return controller_name(element), element elsif element.is_a? Array resource = element.second return "#{element.first}/#{controller_name(resource)}", resource end - end - - # Store the current url in a cookie - # - # * *Args* : - # - # * *Returns* : - # - def store_location - @controller.request.cookie_jar[:return_to] = @controller.request.fullpath end end end \ No newline at end of file