spec/dummy/app/models/user.rb in gettext_simple_rails-0.0.17 vs spec/dummy/app/models/user.rb in gettext_simple_rails-0.0.19

- old
+ new

@@ -1,11 +1,11 @@ require "email_validator" class User < ActiveRecord::Base translates :title - - has_many :roles - + + has_many :roles, dependent: :restrict_with_error + validates :name, :length => {:in => 2..255} validates :name, :uniqueness => true, :presence => true validates :name, :format => {:with => /\A[A-z]+\Z/} validates :email, :email => true end