lib/approval.rb in approval-0.3.1 vs lib/approval.rb in approval-0.3.2

- old
+ new

@@ -4,9 +4,15 @@ end def self.configure yield config end + + def self.init! + user_model = Approval.config.user_class_name.safe_constantize + user_model.include ::Approval::Mixins::User if user_model + [Approval::Request, Approval::Comment].each(&:define_user_association) + end end require "approval/config" require "approval/engine" if defined?(::Rails) require "approval/version"