lib/approval/mixins/user.rb in approval-0.3.1 vs lib/approval/mixins/user.rb in approval-0.3.2
- old
+ new
@@ -4,12 +4,9 @@
extend ActiveSupport::Concern
included do
has_many :approval_requests, class_name: :"Approval::Request", foreign_key: :request_user_id
has_many :approval_comments, class_name: :"Approval::Comment", foreign_key: :user_id
-
- Approval::Request.define_user_association(self)
- Approval::Comment.define_user_association(self)
end
def request_for_create(records, reason:)
Approval::RequestForm::Create.new(user: self, reason: reason, records: records)
end