Sha256: b896acfca7077e01d1a0c2b51f8498a1bc885bd387868198937406a320e67c99
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
require 'devise' module DeviseInvitable autoload :Inviter, 'devise_invitable/inviter' end require 'devise_invitable/mailer' require 'devise_invitable/routes' require 'devise_invitable/controllers/url_helpers' require 'devise_invitable/controllers/helpers' require 'devise_invitable/rails' module Devise # Public: Validity period of the invitation token (default: 0). If # invite_for is 0 or nil, the invitation will never expire. # Set invite_for in the Devise configuration file (in config/initializers/devise.rb). # # config.invite_for = 2.weeks # => The invitation token will be valid 2 weeks mattr_accessor :invite_for @@invite_for = 0 # Public: Flag that force a record to be valid before being actually invited # (default: false). # # Examples (in config/initializers/devise.rb) # # config.validate_on_invite = true mattr_accessor :validate_on_invite @@validate_on_invite = false # Public: number of invitations the user is allowed to send # # Examples (in config/initializers/devise.rb) # # config.invitation_limit = nil mattr_accessor :invitation_limit @@invitation_limit = nil # Public: The key to be used to check existing users when sending an invitation # # Examples (in config/initializers/devise.rb) # # config.invite_key = :email mattr_accessor :invite_key @@invite_key = :email # Public: Resend invitation if user with invited status is invited again # (default: true) # # Example (in config/initializers/devise.rb) # # config.resend_invitation = false mattr_accessor :resend_invitation @@resend_invitation = true end Devise.add_module :invitable, :controller => :invitations, :model => 'devise_invitable/model', :route => :invitation
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
devise_invitable-1.0.0 | lib/devise_invitable.rb |