acts_as_translatable 0.0.9 → 0.1.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.
@@ -38,6 +38,10 @@ class ActiveRecord::Base
38
38
  translations[I18n.locale][\"#{field}\"] || \"\"
39
39
  end
40
40
 
41
+ def #{field}?
42
+ !#{field}.blank?
43
+ end
44
+
41
45
  def #{field}=(value)
42
46
  translations[I18n.locale] ||= {}
43
47
  translations[I18n.locale][\"#{field}\"] = value
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_translatable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 9
10
- version: 0.0.9
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lasse Bunk