mongomapper_ext 0.1.1 → 0.1.2

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 CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -40,7 +40,7 @@ module MongoMapperExt
40
40
 
41
41
  module Finder
42
42
  def by_slug(id, options = {})
43
- self.find_by_slug(id, options) || self.find_by_id(id, options)
43
+ self.find_by_slug(id, options) || self.first(options.merge({:_id => id}))
44
44
  end
45
45
  alias :find_by_slug_or_id :by_slug
46
46
  end
@@ -73,7 +73,6 @@ module MongoMapperExt
73
73
  end
74
74
 
75
75
  define_method(name) do
76
- puts "NAME: #{name}"
77
76
  fetch_file(self["_#{name}"]) if self.class.keys.has_key?("_#{name}")
78
77
  end
79
78
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mongomapper_ext}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David A. Cuadrado"]
12
- s.date = %q{2010-02-21}
12
+ s.date = %q{2010-02-24}
13
13
  s.description = %q{MongoMapper extensions}
14
14
  s.email = %q{krawek@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongomapper_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David A. Cuadrado
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-21 00:00:00 -05:00
12
+ date: 2010-02-24 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency