Skip to content

Commit

Permalink
* Added Activerecordtosdb_subrecord_array.empty? method
Browse files Browse the repository at this point in the history
* 1.1.18
  • Loading branch information
Chad committed Oct 9, 2009
1 parent 822ed45 commit a3a7187
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
:major: 1
:minor: 1
:patch: 17
:patch: 18
4 changes: 4 additions & 0 deletions lib/simple_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,10 @@ def find_all(*params)
find(:all, *params)
end

def empty?
return load.empty?
end

def build(*params)
params[0][@referencename]=@referencevalue
eval(@subname).new(*params)
Expand Down
4 changes: 2 additions & 2 deletions simple_record.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{simple_record}
s.version = "1.1.17"
s.version = "1.1.18"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Travis Reeder", "Chad Arimura", "RightScale"]
s.date = %q{2009-09-21}
s.date = %q{2009-10-08}
s.description = %q{Drop in replacement for ActiveRecord to Amazon SimpleDB instead.}
s.email = %q{travis@appoxy.com}
s.extra_rdoc_files = [
Expand Down

0 comments on commit a3a7187

Please sign in to comment.