- Email: [email protected]
- Twitter: @adman65
- Website or Blog: http://broadcastingadam.com
- Company: Radium Software
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let(:attributes) { {:email => '[email protected]', :password => 'password'}} | |
it "should assign the new user as company admin" do | |
post :create, :user => attributes | |
user = User.find_by_email! '[email protected]' | |
user.foo.should be_true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install with: | |
# bash < <(curl -L https://raw.github.com/gist/2035307) | |
# | |
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug | |
echo "Installing ruby-debug with ruby-1.9.3-p125 ..." | |
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem | |
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem |
- Email: [email protected]
- Twitter: @adman65
- Website or Blog: http://broadcastingadam.com
- Company: Radium Software
- Email: [email protected]
- Twitter: @adman65
- Website or Blog: http://broadcastingadam.com
- Company: Radium Software
- Email: [email protected]
- Twitter: @adman65
- Website or Blog: http://broadcastingadam.com
- Company: Radium Software
- Email: [email protected]
- Twitter: @adman65
- Website or Blog: http://broadcastingadam.com
- Company: Radium Software
- Email: [email protected]
- Twitter: @adman65
- Website or Blog: http://broadcastingadam.com
- Company: Radium Software
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DS.Model.reopenClass({ | |
scope: function(name, fn) { | |
Ember.defineProperty(this, '_'+name+'Filter', Ember.computed(function() { | |
return this.filter(fn); | |
})); | |
Ember.defineProperty(this, name, Ember.computed('_'+name+'[email protected]', function() { | |
return this.get('_'+name+'Filter') | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App = Ember.Application.create({}); | |
App.Store = DS.Store.extend({ | |
adapter: DS.RESTAdapter.create({ | |
namespace: 'api', | |
serializer: DS.RESTSerializer.extend({ | |
extractMeta: function(loader, type, json) { | |
this._super.apply(this, arguments); | |
delete json.count; |
OlderNewer