labelized 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/labelized.gemspec +1 -1
- data/lib/labelized/labelized_concern.rb +5 -4
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/labelized.gemspec
CHANGED
@@ -4,6 +4,10 @@ module Labelized
|
|
4
4
|
|
5
5
|
included do
|
6
6
|
extend Support
|
7
|
+
|
8
|
+
has_many :labelings, :as => :labeled, :dependent => :destroy
|
9
|
+
has_many :labels, :through => :labelings
|
10
|
+
|
7
11
|
end
|
8
12
|
|
9
13
|
module InstanceMethods
|
@@ -33,10 +37,7 @@ module Labelized
|
|
33
37
|
# thing.label 'this', :kind
|
34
38
|
# labelized [:kind, :keywords, :tracks], :scope => [:community_id], :label_class => Label, :labeling_class => Labeling
|
35
39
|
#
|
36
|
-
class_eval do
|
37
|
-
has_many :labelings, :as => :labeled, :dependent => :destroy
|
38
|
-
has_many :labels, :through => :labelings
|
39
|
-
|
40
|
+
class_eval do
|
40
41
|
define_method('label') do |labels, label_set_name = :label|
|
41
42
|
label_class = (labelized_options[:label_class_name] || 'Label').constantize
|
42
43
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: labelized
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.6.
|
5
|
+
version: 0.6.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Peter T. Brown
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
requirements:
|
147
147
|
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
hash:
|
149
|
+
hash: 2891338049429113683
|
150
150
|
segments:
|
151
151
|
- 0
|
152
152
|
version: "0"
|