app/models/user.rb
# before_save TODO - could replace this with actual method that does all approvals however that is going to work
# TODO - not DRY with #grant_curator
before_save TODO - could replace this with actual method that does all approvals however that is going to work
TODO - not DRY with #grant_curator
before_save TODO - could replace this with actual method that does all approvals however that is going to work TODO - not DRY with #grant_curator
def instantly_approve_curator_level
    if wants_to_be_a_curator?
      unless already_has_requested_curator_level?
        was_curator = self.is_curator?
        self.curator_level_id = self.requested_curator_level_id
        self.curator_verdict_at = Time.now
        join_curator_community_if_curator unless was_curator
      end
      self.requested_curator_level_id = nil
    end
  end
def instantly_approve_curator_level if wants_to_be_a_curator? unless already_has_requested_curator_level? was_curator = self . is_curator? self . curator_level_id = self . requested_curator_level_id self . curator_verdict_at = Time . now join_curator_community_if_curator unless was_curator end self . requested_curator_level_id = nil end end
before_save TODO - could replace this with actual method that does all approvals however that is going to work
TODO - not DRY with #grant_curator
before_save TODO - could replace this with actual method that does all approvals however that is going to work TODO - not DRY with #grant_curator