simple_record 1.1.29 → 1.1.30

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/simple_record.rb +3 -3
  2. metadata +2 -2
data/lib/simple_record.rb CHANGED
@@ -817,7 +817,7 @@ module SimpleRecord
817
817
 
818
818
  def to_bool(x)
819
819
  if x.is_a?(String)
820
- x == "true"
820
+ x == "true" || x == "1"
821
821
  else
822
822
  x
823
823
  end
@@ -906,8 +906,8 @@ module SimpleRecord
906
906
  # Find by ID:
907
907
  # MyModel.find(ID)
908
908
  #
909
- # Query:
910
- # MyModel.find(:all, ["name = ?", name], :order=>"created desc", :limit=>10)
909
+ # Query example:
910
+ # MyModel.find(:all, :conditions=>["name = ?", name], :order=>"created desc", :limit=>10)
911
911
  #
912
912
  def self.find(*params)
913
913
  #puts 'params=' + params.inspect
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.29
4
+ version: 1.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-11-06 00:00:00 -08:00
14
+ date: 2009-11-11 00:00:00 -08:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency