lib/devise_invitable/routes.rb in devise_invitable-1.7.5 vs lib/devise_invitable/routes.rb in devise_invitable-2.0.0

- old
+ new

@@ -1,13 +1,13 @@ module ActionDispatch::Routing class Mapper protected def devise_invitation(mapping, controllers) - resource :invitation, :only => [:new, :create, :update], - :path => mapping.path_names[:invitation], :controller => controllers[:invitations] do - get :edit, :path => mapping.path_names[:accept], :as => :accept - get :destroy, :path => mapping.path_names[:remove], :as => :remove + resource :invitation, only: [:new, :create, :update], + path: mapping.path_names[:invitation], controller: controllers[:invitations] do + get :edit, path: mapping.path_names[:accept], as: :accept + get :destroy, path: mapping.path_names[:remove], as: :remove end end end end