lib/togostanza/stanza/base.rb in togostanza-2.1.3 vs lib/togostanza/stanza/base.rb in togostanza-2.2.0

- old
+ new

@@ -153,17 +153,10 @@ module TogoStanza::Stanza autoload :ExpressionMap, 'togostanza/stanza/expression_map' autoload :Grouping, 'togostanza/stanza/grouping' autoload :Querying, 'togostanza/stanza/querying' - class Context < Hashie::Mash - def respond_to_missing?(*) - # XXX It looks ugly, but we need use not pre-defined properties - true - end - end - class Base extend ExpressionMap::Macro include Querying include Grouping @@ -195,10 +188,10 @@ end attr_reader :params def context - Context.new(properties.resolve_all_in_parallel(self, params)) + Hashie::Mash.new(properties.resolve_all_in_parallel(self, params)) end def resource(name) resources.resolve(self, name, params) end