locomotivecms_mounter 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c701ff803db0fc2eb729bd9f163c16250c3b025
4
- data.tar.gz: 5d71e0b87dbca449ca804359ffb4d35bf041a290
3
+ metadata.gz: 79663d1b58f4a46ada47776d7e14c92462900fab
4
+ data.tar.gz: 10e9dd0d045ff02bf5340a3b2717927adcc622ee
5
5
  SHA512:
6
- metadata.gz: b9aa9c4fc830cb2323ddef018e1477850b2952c7002a5f30ba63b99185d45159db980ac84e426d9567caecfe9ef3c969de2048db60281e7b0335c5cc2efb9cac
7
- data.tar.gz: 57c6e614367f7c19baa15158ea7bb56cc53bbfdfb47ea0369710a04aaf05045f51b71edee5b7321855f3990ce1fd570324474e24e866355216c9f0693de50d6a
6
+ metadata.gz: 3a7cefcb901b7a5bce7d9ab72936d2a9f2590b6244548f177c24e8c20a56a484a7737f2fa5894be40e8b87cba99d42f840aedb82429abf217f96bf18e11e16cf
7
+ data.tar.gz: 20bc67d5480e46fc5ba0e91f89c4b8825d2074062939455368e1cba92fb15143410e67e082365e0c80a5bc0abb6e10439deb488dffc7a89dbd76bd13535ca0f1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- locomotivecms_mounter (1.4.3)
4
+ locomotivecms_mounter (1.4.4)
5
5
  RedCloth (~> 4.2.3)
6
6
  activesupport (~> 3.2.18)
7
7
  chronic (~> 0.10.2)
@@ -74,6 +74,10 @@ module Locomotive
74
74
  end
75
75
  end
76
76
 
77
+ def [](name)
78
+ self.attributes[name.to_sym]
79
+ end
80
+
77
81
  # Return the fields with their values and their translations
78
82
  #
79
83
  # @return [ Hash ] The attributes
@@ -181,6 +181,14 @@ module Locomotive
181
181
 
182
182
  alias :attributes= :write_attributes
183
183
 
184
+ def [](name)
185
+ if is_dynamic_field?(name)
186
+ self.dynamic_getter(name.to_sym)
187
+ else
188
+ super
189
+ end
190
+ end
191
+
184
192
  # The magic of dynamic fields happens within this method.
185
193
  # It calls the getter/setter of a dynamic field if it is one of them.
186
194
  def method_missing(name, *args, &block)
@@ -2,7 +2,7 @@
2
2
  module Locomotive
3
3
  module Mounter #:nodoc
4
4
 
5
- VERSION = '1.4.3'
5
+ VERSION = '1.4.4'
6
6
 
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms_mounter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-20 00:00:00.000000000 Z
11
+ date: 2014-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt