portable-hole 0.0.3 → 1.0.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/portable-hole.rb +7 -6
  2. metadata +5 -5
data/lib/portable-hole.rb CHANGED
@@ -31,12 +31,13 @@ module Reamaze
31
31
 
32
32
  class_eval <<-end_eval
33
33
  # Define the has_many relationship
34
- has_many :_#{eav}, :class_name => 'PortableValue',
35
- :as => :model,
36
- :conditions => {:context => '#{eav}'},
37
- :extend => AssociationExtensions,
38
- :inverse_of => :model,
39
- :dependent => :delete_all
34
+ has_many :_#{eav},
35
+ -> { :context => '#{eav}' }
36
+ :class_name => 'PortableValue',
37
+ :as => :model,
38
+ :extend => AssociationExtensions,
39
+ :inverse_of => :model,
40
+ :dependent => :delete_all
40
41
 
41
42
  accepts_nested_attributes_for :_#{eav}, :allow_destroy => true
42
43
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portable-hole
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 3
10
- version: 0.0.3
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lu Wang
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-17 00:00:00 Z
18
+ date: 2013-09-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements: []
84
84
 
85
85
  rubyforge_project:
86
- rubygems_version: 1.8.11
86
+ rubygems_version: 1.8.25
87
87
  signing_key:
88
88
  specification_version: 3
89
89
  summary: Portable Hole is an extension to ActiveRecord that adds EAV functionality to a model via a polymorphic association with an EAV table.