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 CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{labelized}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter T. Brown"]
@@ -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.1
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: -3943475680373702123
149
+ hash: 2891338049429113683
150
150
  segments:
151
151
  - 0
152
152
  version: "0"