mongoid_taggable_on 0.1.2 → 0.1.3

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/mongoid/taggable_on.rb +9 -0
  2. metadata +4 -4
@@ -91,6 +91,15 @@ find items with tag
91
91
  return "" if self.#{field_name}.blank?
92
92
  self.#{field_name}.join(",")
93
93
  end
94
+
95
+ def #{field_name_single}_list_was
96
+ return "" if self.#{field_name}_was.blank?
97
+ self.#{field_name}_was.join(",")
98
+ end
99
+
100
+ def #{field_name_single}_list_changed?
101
+ self.#{field_name}_changed?
102
+ end
94
103
  }
95
104
  end
96
105
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_taggable_on
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-09 00:00:00.000000000 Z
12
+ date: 2012-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
16
- requirement: &70316349013900 !ruby/object:Gem::Requirement
16
+ requirement: &70191061067120 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>'
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70316349013900
24
+ version_requirements: *70191061067120
25
25
  description: Mongoid Taggable provides some helpers to create taggable documents,
26
26
  can use many fields.
27
27
  email: