selectable_attr_rails 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/selectable_attr_rails/db_loadable.rb +1 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -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 =
|
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.
|
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-
|
12
|
+
date: 2009-11-11 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|