Improved api handling. No longer a empty hash is needed.

This commit is contained in:
Martin Edenhofer 2014-02-09 02:18:40 +01:00
parent b4cd8db227
commit 5e077fa5bb

View file

@ -20,7 +20,7 @@ returns
=end
def assets (data)
def assets (data = {})
if !data[ self.class.to_app_model ]
data[ self.class.to_app_model ] = {}