acts_as_mongo_taggable 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +13 -2
- data/lib/acts_as_mongo_taggable.rb +1 -2
- metadata +3 -3
data/README.markdown
CHANGED
@@ -15,11 +15,21 @@ Requirements
|
|
15
15
|
Installation
|
16
16
|
------------
|
17
17
|
|
18
|
-
|
18
|
+
Best practice -- install the gem:
|
19
|
+
|
20
|
+
gem install acts_as_mongo_taggable
|
21
|
+
|
22
|
+
… and add a line to your environment.rb:
|
23
|
+
|
24
|
+
config.gem 'acts_as_mongo_taggable'
|
25
|
+
|
26
|
+
|
27
|
+
or, if you're old-school, install as a plugin:
|
19
28
|
|
20
29
|
./script/plugin install git://github.com/mepatterson/acts_as_mongo_taggable.git
|
21
30
|
|
22
|
-
|
31
|
+
|
32
|
+
Finally, add this line to the Rails model class that you want to make taggable:
|
23
33
|
|
24
34
|
include ActsAsMongoTaggable
|
25
35
|
|
@@ -83,6 +93,7 @@ Future
|
|
83
93
|
|
84
94
|
Thanks To...
|
85
95
|
------------
|
96
|
+
- Jon Bell for some sweet refactorings and gem-ification
|
86
97
|
- John Nunemaker and the rest of the folks on the MongoMapper Google Group
|
87
98
|
- Kyle Banker and his excellent blog posts on grouping and aggregation
|
88
99
|
- The MongoDB peoples and the MongoDB Google Group
|
@@ -202,7 +202,6 @@ end
|
|
202
202
|
%w{ models observers }.each do |dir|
|
203
203
|
path = File.join(File.dirname(__FILE__), 'app', dir)
|
204
204
|
$LOAD_PATH << path
|
205
|
-
ActiveSupport::Dependencies.
|
206
|
-
ActiveSupport::Dependencies.load_once_paths.delete(path)
|
205
|
+
ActiveSupport::Dependencies.autoload_paths << path
|
207
206
|
end
|
208
207
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Matt E. Patterson
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-09-22 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|