lib/ripple/document/attribute_methods/read.rb in ripple-0.6.1 vs lib/ripple/document/attribute_methods/read.rb in ripple-0.7.0
- old
+ new
@@ -20,9 +20,13 @@
extend ActiveSupport::Concern
included do
attribute_method_suffix ""
end
+
+ def [](attr_name)
+ attribute(attr_name)
+ end
private
def attribute(attr_name)
if @attributes.include?(attr_name)
@attributes[attr_name]