waynerobinson / xeroizer

Xero accounting system API library.
http://waynerobinson.github.com/xeroizer
Other
238 stars 311 forks source link

Can't search by line items because of missing permission #479

Closed StaverDmitry closed 4 years ago

StaverDmitry commented 5 years ago

xero_app.LineItem.all won't work because it raises NoMethodError: undefined method '[]' for nil:NilClass in lib/xeroizer/record/base_model.rb:121 when trying to retrieve class permissions. I noticed set_permissions is missing in models/line_item.rb contrary to models/invoice.rb That's probably the reason for this error.

CloCkWeRX commented 4 years ago

https://github.com/waynerobinson/xeroizer/blob/master/lib/xeroizer/models/line_item.rb#L7 now features this