selectable_attr_rails 0.3.8 → 0.3.9

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/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :build:
3
3
  :major: 0
4
4
  :minor: 3
5
- :patch: 8
5
+ :patch: 9
@@ -65,9 +65,8 @@ module SelectableAttrRails
65
65
  if @sql_to_update.respond_to?(:call)
66
66
  records = @sql_to_update.call
67
67
  else
68
- @connection ||= ActiveRecord::Base.connection
69
68
  sql = @sql_to_update.gsub(/\:locale/, I18n.locale.to_s.inspect)
70
- records = @connection.select_rows(sql)
69
+ records = ActiveRecord::Base.connection.select_rows(sql)
71
70
  end
72
71
 
73
72
  new_entries = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selectable_attr_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Akima
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-29 00:00:00 +09:00
12
+ date: 2009-11-11 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency