ACK both - JIRA seems down for maintenance right now so can't ACK/resolve the relevant tickets 391 and 388
marios On 05/12/12 19:06, [email protected] wrote: > From: Michal Fojtik <[email protected]> > > > Signed-off-by: Michal fojtik <[email protected]> > --- > server/lib/cimi/models/base.rb | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/server/lib/cimi/models/base.rb b/server/lib/cimi/models/base.rb > index 2b13367..2988459 100644 > --- a/server/lib/cimi/models/base.rb > +++ b/server/lib/cimi/models/base.rb > @@ -279,7 +279,8 @@ class CIMI::Model::Base < CIMI::Model::Resource > > def filter_attributes(attr_list) > attrs = attr_list.inject({}) do |result, attr| > - result[attr] = self.send(attr) if self.respond_to?(attr) > + attr = attr.to_s.underscore > + result[attr.to_sym] = self.send(attr) if self.respond_to?(attr) > result > end > self.class.new(attrs) >
