acts_as_itemized 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/acts_as_itemized.rb +3 -7
  2. metadata +1 -12
@@ -26,9 +26,6 @@ module ActsAsItemized
26
26
  def contents
27
27
  all.collect(&:content)
28
28
  end
29
- def notes
30
- all.collect(&:note)
31
- end
32
29
  def to_h
33
30
  all.inject({}) do |result, item|
34
31
  key = item.item_type
@@ -100,8 +97,8 @@ module ActsAsItemized
100
97
  item_changes.each{|key,values| @attributes.delete(key) }
101
98
  super
102
99
  end
103
-
104
-
100
+
101
+
105
102
  protected
106
103
 
107
104
  # ITEM CHANGES
@@ -244,8 +241,7 @@ module ActsAsItemized
244
241
  end
245
242
  @attributes[key] = value
246
243
  end
247
-
248
-
244
+
249
245
  def get_item_record(key)
250
246
  options = self.send("#{key}_options")
251
247
  # get through delegate, if defined
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_itemized
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
5
+ version: 0.1.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - Blake Hilscher
@@ -43,18 +38,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
38
  requirements:
44
39
  - - ">="
45
40
  - !ruby/object:Gem::Version
46
- hash: 3
47
- segments:
48
- - 0
49
41
  version: "0"
50
42
  required_rubygems_version: !ruby/object:Gem::Requirement
51
43
  none: false
52
44
  requirements:
53
45
  - - ">="
54
46
  - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
57
- - 0
58
47
  version: "0"
59
48
  requirements: []
60
49