Improved api handling. No longer a empty hash is needed.
This commit is contained in:
parent
b4cd8db227
commit
5e077fa5bb
1 changed files with 1 additions and 1 deletions
|
@ -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 ] = {}
|
||||
|
|
Loading…
Reference in a new issue