This file contains hidden or 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
class App.Project extends Spine.Model | |
@configure 'Project', 'id', 'name', 'description', 'owner_id', 'uid' | |
@extend Spine.Model.Ajax | |
@extend Spine.Model.Dirty | |
validate: -> | |
'name required' unless @name | |
inviteUser: (email) -> | |
App.Invitation.create(project_id: @id, email: email) |
This file contains hidden or 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
class App.Ticket extends Spine.Model | |
@configure 'Ticket', "id", "project_id" | |
@scope: -> | |
"projects/#{current.project_id}" | |
scope: -> | |
"projects/#{@project_id}" |
This file contains hidden or 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
config.action_mailer.delivery_method = :file | |
config.action_mailer.file_settings = { | |
location: 'tmp/mails', | |
smtp_settings: { | |
address: "localhost", | |
port: 25, | |
domain: 'localhost.localdomain', | |
user_name: nil, | |
password: nil, | |
authentication: nil, |
This file contains hidden or 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/sh | |
set -u | |
set -e | |
# Feel free to change any of the following variables for your app: | |
export PATH=/usr/local/bin:$PATH | |
export HOME=/home/deploy | |
APP_ROOT=/var/www/pragmaticly/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid |
This file contains hidden or 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/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |
OlderNewer