curator 0.7.0 → 0.8.0

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.
Files changed (2) hide show
  1. data/lib/curator/repository.rb +8 -0
  2. metadata +2 -2
@@ -8,7 +8,15 @@ module Curator
8
8
  extend ActiveSupport::Concern
9
9
 
10
10
  module ClassMethods
11
+ def collection(explicit_collection_name)
12
+ @collection_name = explicit_collection_name
13
+ end
14
+
11
15
  def collection_name
16
+ @collection_name ||= default_collection_name
17
+ end
18
+
19
+ def default_collection_name
12
20
  ActiveSupport::Inflector.tableize(klass)
13
21
  end
14
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-25 00:00:00.000000000 Z
12
+ date: 2012-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport