Sha256: e398a0a4bf56067657267f3e1fe8f35263eed78e98d935851a735fd268f393fb
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
module ActionDispatch::Routing class Mapper protected def devise_invitation(mapping, controllers) scope mapping.full_path[1..-1], :name_prefix => mapping.name do resource :invitation, :only => [:new, :create, :update, :edit], :as => mapping.path_names[:invitation], :controller => controllers[:invitations] # get :"accept_#{mapping.name}_invitation", :controller => 'invitations', :action => 'edit' # , :name_prefix => nil, :path_prefix => "#{mapping.name}/invitation" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lperichon-devise_invitable-0.3.0 | lib/devise_invitable/routes.rb |