mongoid_silo 0.0.1 → 0.0.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/README.md +4 -4
- data/lib/mongoid_silo/version.rb +1 -1
- data/lib/mongoid_silo.rb +2 -2
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# MongoidSilo
|
2
2
|
|
3
|
-
|
3
|
+
MongoidSilo creates and transparently manages static representations of a model - e.g. for creating Feeds or other diverse datastructures.
|
4
4
|
|
5
5
|
It's pretty opinionated, and thus must be awesome. It requires the latest Mongoid and Sidekiq, mainly because they are both awesome, secondly because it uses them.
|
6
6
|
|
@@ -9,7 +9,7 @@ It's pretty opinionated, and thus must be awesome. It requires the latest Mongoi
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem '
|
12
|
+
gem 'mongoid_silo'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
$ gem install
|
21
|
+
$ gem install mongoid_silo
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
data/lib/mongoid_silo/version.rb
CHANGED
data/lib/mongoid_silo.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require "mongoid_silo/version"
|
2
2
|
require 'mongoid_silo/railtie' if defined?(Rails)
|
3
3
|
require 'mongoid/silo'
|
4
|
-
|
5
|
-
|
4
|
+
require_relative '../app/models/silo'
|
5
|
+
require_relative '../app/workers/mongoid_silo/update_silo_worker'
|
6
6
|
|
7
7
|
module MongoidSilo
|
8
8
|
end
|