lib/securetrading/base_model.rb in securetrading-0.3.1 vs lib/securetrading/base_model.rb in securetrading-0.3.2
- old
+ new
@@ -1,7 +1,9 @@
module Securetrading
class BaseModel
+ attr_reader :attributes_hash
+
def initialize(attrs_hash = {})
@attributes_hash = attrs_hash.presence &&
attrs_hash.transform_keys! { |k| k.to_s.tr('__', '') }
end
@@ -43,9 +45,7 @@
end
def sub_classes
[]
end
-
- attr_reader :attributes_hash
end
end