has_many_by_status 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/has_many_by_status.rb +3 -1
- metadata +1 -1
data/lib/has_many_by_status.rb
CHANGED
@@ -13,7 +13,7 @@ module ActiveRecord #:nodoc:
|
|
13
13
|
def has_many_by_status(association_id, options = {}, &extension)
|
14
14
|
begin
|
15
15
|
# don't allow multiple calls
|
16
|
-
|
16
|
+
return if self.included_modules.include?(ActiveRecord::Has::ManyByStatus::ActMethods)
|
17
17
|
|
18
18
|
self_class_name = self.to_s.downcase
|
19
19
|
|
@@ -70,6 +70,8 @@ module ActiveRecord #:nodoc:
|
|
70
70
|
rescue => ex
|
71
71
|
puts "Error in has_many_by_status: #{ex.message}"
|
72
72
|
puts ex.backtrace
|
73
|
+
RAILS_DEFAULT_LOGGER.error "Error in has_many_by_status: #{ex.message}"
|
74
|
+
RAILS_DEFAULT_LOGGER.error ex.backtrace
|
73
75
|
end
|
74
76
|
end
|
75
77
|
end
|