Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix namespace regression #665

Closed
wants to merge 1 commit into from

2 participants

@diegorv

No description provided.

@andhapp
Collaborator

Closing this as #668 fix the same issue in 2.0 branch. It needs to be ported to 1.x branch.

@andhapp andhapp closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 27, 2012
  1. @diegorv
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cancan/controller_resource.rb
View
2  lib/cancan/controller_resource.rb
@@ -220,7 +220,7 @@ def resource_params
end
def namespace
- @params[:controller].split("::")[0..-2]
+ @params[:controller].split("/")[0..-2]
end
def namespaced_name
Something went wrong with that request. Please try again.