Permalink
Browse files

fixed some url helpers in warden code

  • Loading branch information...
1 parent 632d0ce commit c01b6d2e53e83307f36aaf29eaf84a3cce9e2123 @juozasg committed Mar 28, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/memberships/warden_failure.rb
@@ -6,16 +6,16 @@ def recall_app(app)
return "MembersController".constantize.action('login') unless params[:member_login].blank?
return "#{controller.camelize}Controller".constantize.action(action) if params[:member_login].blank?
end
-
+
def redirect_url
- if request_format == :html
+ if request_format == :html
if /^admin/.match(params[:controller])
- send(:"new_#{scope}_session_path")
+ refinery.send(:"new_#{scope}_session_path")
else
- login_members_path(:redirect => request.fullpath, :member_login => true)
+ refinery.login_members_path(:redirect => request.fullpath, :member_login => true)
end
else
- send(:"new_#{scope}_session_path", :format => request_format)
+ refinery.send(:"new_#{scope}_session_path", :format => request_format)
end
end

0 comments on commit c01b6d2

Please sign in to comment.