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
#Alias the default boolean? operator of ruby for everything so all objects responds_to? :to_bool | |
#...then further refine it for specific classes later | |
class Object | |
def to_bool | |
return !!self | |
end | |
end | |
#Lets give String a custom to_bool that is in line with the meaning for our specific program | |
class String |
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
#!/bin/bash | |
cd ../../coalesce; | |
npm run-script build; | |
cd ../coalesce-ember; | |
# Hack to use the latest version of Coalesce | |
cp ../coalesce/dist/* bower_components/coalesce/ | |
npm run-script build; | |
cd ../ember-cli-coalesce-todos/client; | |
mkdir -p vendor/coalesce-ember |
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/initializers/simple-auth-config.js | |
export default { | |
name: 'simple-auth-config', | |
before: 'simple-auth', | |
initialize: function() { | |
var tokenEndpoint = '/users/sign_in'; | |
MyAppnameENV['simple-auth'] = { | |
authorizer: 'simple-auth-authorizer:devise', | |
crossOriginWhitelist:[ |
NewerOlder