Andrew Hacking

Results 15 issues of Andrew Hacking

The following percentage based calculations now work as shown: `Unit('50 %') * Unit('50 %) == Unit('25 %')` `Unit('50 m') * Unit('10 %) == Unit('5 m')` `Unit('10 %') * Unit('50 m)...

Attempting to parse Unit('$1.45') throws a 'stack limit reached' error. - Fixed parse_into_numbers_and_units to account for leading '$' - Added test for currency parsing

Fix gem dependency to allow gem to be used with Rails 4.x

I have been experimenting with this awesome library in livebook, what a great combination! One of the features I was not able to find despite reading all the documentation was...

This PR add the ability to control what attributes or relationships are sent back to the server as sometimes is it is undesirable to send everything back, e.g. read-only attributes...

enhancement
needs-review

This PR allows `revert()` to work with the FixtureAdapter, and includes unit test. The current `FixtureAdapter` does not update `_data` when performing a `create()` or `save()` which leads problems such...

needs-review

Currently I am working around an issue with Date/string handling as follows: ``` Em.Model.dataTypes[Date].serialize = function(date) { if (!date) { return null; } if (Em.typeOf(date) === 'string') { date =...

I am wanting to implement some basic polymorphism / inheritience but have not been able to find any information on how to approach this for Ember.Model. I did see a...

enhancement
awaiting-response

Scenario 1: Create a new model for a form, user cancels before record is saved. How to cleanup? Scenario 2: User edits existing (or new) record and adds a new...

``` // hasMany example var comments = newUser.get('comments'); comments.create({text: "hello!"}); comments.save(); // POST to /comments.json ``` There is no `create` method defined for a non embedded `hasMany` relationships so this...

bug