active-record-data-tables 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "active-record-data-tables"
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kaspernj"]
12
- s.date = "2013-07-09"
12
+ s.date = "2013-07-15"
13
13
  s.description = "Helping functionality for filtering, sorting and stuff like that with data-tables and ActiveRecord."
14
14
  s.email = "k@spernj.org"
15
15
  s.extra_rdoc_files = [
@@ -149,7 +149,7 @@ class ActiveRecordDataTables
149
149
 
150
150
  # Escapes the given string to be used in a SQL statement.
151
151
  def escape(str)
152
- return ActiveRecord::Base.connection.quote(str).slice(1, str.length - 1)
152
+ return ActiveRecord::Base.connection.quote_string(str)
153
153
  end
154
154
 
155
155
  # Escapes the given name as a column and checks for SQL-injections.
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: active-record-data-tables
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - kaspernj
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-09 00:00:00.000000000 Z
12
+ date: 2013-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  segments:
127
127
  - 0
128
- hash: -1808048283140226905
128
+ hash: 1815935002957672268
129
129
  version: '0'
130
130
  none: false
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement