lib/lev/object.rb in lev-8.1.0 vs lib/lev/object.rb in lev-9.0.0
- old
+ new
@@ -23,9 +23,14 @@
@express_output ||= @delegates_to.express_output
end
# Set this after dealing with "delegates_to" in case it set a value
@express_output ||= options[:express_output] || self.name.demodulize.underscore
+
+ if options[:use_jobba]
+ self.create_status_proc = ->(*) { Jobba::Status.create! }
+ self.find_status_proc = ->(id) { Jobba::Status.find!(id) }
+ end
end
end
def self.lev_handler(options={})
class_eval do