has_many_by_status 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/has_many_by_status.rb +3 -1
  2. metadata +1 -1
@@ -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
- #return if self.included_modules.include?(ActiveRecord::Has::ManyByStatus::ActMethods)
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
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: has_many_by_status
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
6
+ version: 1.0.1
7
7
  date: 2007-03-01 00:00:00 -05:00
8
8
  summary: has_many_by_status
9
9
  require_paths: