lib/ddr/auth/user.rb in ddr-models-1.15.0 vs lib/ddr/auth/user.rb in ddr-models-1.16.0
- old
+ new
@@ -8,10 +8,10 @@
has_many :events, inverse_of: :user, class_name: "Ddr::Events::Event"
attr_writer :groups
- delegate :can?, :cannot?, to: :ability
+ delegate :can, :can?, :cannot, :cannot?, to: :ability
validates_uniqueness_of :username, :case_sensitive => false
validates_format_of :email, with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/
devise :database_authenticatable, :omniauthable, omniauth_providers: [:shibboleth]