app/models/openstax/accounts/account.rb in openstax_accounts-7.1.0 vs app/models/openstax/accounts/account.rb in openstax_accounts-7.2.0

- old
+ new

@@ -22,14 +22,14 @@ enum faculty_status: [:no_faculty_info, :pending_faculty, :confirmed_faculty, :rejected_faculty] after_initialize { self.faculty_status ||= :no_faculty_info } validates :faculty_status, presence: true - validates :openstax_uid, :presence => true, :uniqueness => true - validates :username, :presence => true, :uniqueness => true, - :unless => :syncing_or_stubbing + validates :openstax_uid, presence: true, uniqueness: true + validates :username, presence: true, uniqueness: true, + unless: :syncing_or_stubbing - before_update :update_openstax_accounts, :unless => :syncing_or_stubbing + before_update :update_openstax_accounts, unless: :syncing_or_stubbing def name (first_name || last_name) ? [first_name, last_name].compact.join(" ") : username end