This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
has_many :group_memberships, :dependent => :destroy | |
has_many :groups, :through => :group_memberships | |
attr_accessor :skip_invitation | |
devise :invitable, :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :validatable | |
protected | |
def deliver_invitation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
es: | |
errors: | |
messages: | |
not_found: 'no encontrado' | |
already_confirmed: 'ya ha sido confirmada' | |
not_locked: 'no está bloqueada' | |
expired: "ha caducado, por favor pide uno nuevo" | |
not_saved: | |
one: "1 error evitó guardar este %{resource}:" | |
other: "%{count} errores evitaron guardar este %{resource}:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
de: | |
devise: | |
invitations: | |
send_instructions: 'Sie haben eine Einladung in ihrem Email Postfach: %{email}' | |
invitation_token_invalid: 'Der Einladungs Schlüssel ist nicht gültig!' | |
updated: 'Ihr Passwort wurde erfolgreich gesetzt. Sie sind jetzt angemeldet.' | |
no_invitations_remaining: "Sie können keine weiteren Einladungen mehr vornehmen." | |
mailer: | |
invitation_instructions: | |
subject: 'Einladungs-Anweisungen' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nl: | |
devise: | |
invitations: | |
send_instructions: 'Een uitnodigingsmail aan %{email} is verstuurd.' | |
invitation_token_invalid: 'De uitnodigingscode is ongeldig!' | |
updated: 'Uw wachtwoord is ingesteld. U bent nu ingelogd.' | |
no_invitations_remaining: 'Geen uitnodigingen over' | |
mailer: | |
invitation_instructions: | |
subject: 'Instructies voor uitnodigingen' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
es: | |
devise: | |
failure: | |
invited: "Tienes una invitación pendiente, acéptala para acabar de crear tu cuenta." | |
invitations: | |
send_instructions: "Se ha enviado una invitación a %{email}." | |
invitation_token_invalid: "¡La invitación no es válida!" | |
updated: "Se ha configurado su contraseña y ha ingresado al sistema" | |
updated_not_active: "Su contraseña se ha configurado correctamente." | |
no_invitations_remaining: "No quedan invitaciones" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TestingInvitable::Application.routes.draw do | |
root :to => "home#index" | |
devise_for :users, :controllers => {:invitations => 'user_invitations'} | |
devise_scope :user do | |
get "sign_out", :to => "devise/sessions#destroy" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activate the gem you are reporting the issue against. | |
gem 'activerecord', '3.2.13' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# This connection will do for database-independent bug reports. | |
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') | |
ActiveRecord::Base.logger = Logger.new(STDOUT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'activerecord', '4.0.1' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# This connection will do for database-independent bug reports. | |
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
ActiveRecord::Schema.define do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fr: | |
devise: | |
invitations: | |
send_instructions: "Un e-mail d'invitation a été envoyé à %{email}." | |
invitation_token_invalid: "Le jeton d'invitation fourni n'est pas valide!" | |
updated: 'Votre mot de passe a été défini avec succès. Vous êtes maintenant connecté.' | |
no_invitations_remaining: "Il n'y a plus d'invitations restantes" | |
invitation_removed: 'Votre invitation a été supprimée.' | |
new: | |
header: "Envoyer une invitation" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activate the gem you are reporting the issue against. | |
gem 'activerecord', '4.0.5' | |
require 'active_record' | |
require 'minitest/autorun' | |
require 'logger' | |
# Ensure backward compatibility with Minitest 4 | |
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) | |
# This connection will do for database-independent bug reports. |
OlderNewer