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 FantasyFootballLeague < ActiveRecord::Base | |
| has_many :memberships, :as => :app | |
| end |
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 User < ActiveRecord::Base | |
| end |
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
| #wrap | |
| padding-bottom: 10px | |
| border-bottom: dotted white 1px | |
| #wrap:after | |
| border-bottom: 1px dotted white | |
| content: '' | |
| position: absolute | |
| width: 100% | |
| height: 20px |
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 Bracket < ActiveRecord::Base | |
| has_many :memberships, :as => :app | |
| end |
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
| git reset -p 9c3d00aca9ee68fbf8850ce8b729f968a2d4cc11^1 -- path_to/member_steps.rb |
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
| Completed in 312ms (View: 192, DB: 17) | 200 OK [http://www.app.local/brackets/2] | |
| SQL (0.1ms) SET NAMES 'utf8' | |
| SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 | |
| User Columns (1.6ms) SHOW FIELDS FROM `users` | |
| Processing ApplicationController#index (for 127.0.0.1 at 2011-02-10 10:59:56) [GET] | |
| Parameters: {"1296450347"=>nil} | |
| ActionController::RoutingError (No route matches "/images/" with {:method=>:get}): |
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
| # .git/info/attributes | |
| public/images/* -crlf -diff | |
| .sass-cache/* -crlf -diff |
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
| - form_for [@bracket, @bracket.guess_for(user)], :html => {:method => :delete, :class => 'destroy_guess'} do |f| | |
| = f.submit "Delete Guess" |
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
| (rdb:1) date1 | |
| Sun, 30 Jan 2011 21:15:27 CST -06:00 | |
| (rdb:1) date2 | |
| Sun, 30 Jan 2011 21:15:27 CST -06:00 | |
| (rdb:1) date1.class | |
| ActiveSupport::TimeWithZone | |
| (rdb:1) date2.class | |
| ActiveSupport::TimeWithZone | |
| (rdb:1) date1 == date2 | |
| false |
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
| module Invite | |
| module Inviter | |
| attr_accessor :adapter | |
| # Used to create a pre-approved invite for an existing user | |
| # | |
| def pre_approve!(a_user) | |
| adapter().pre_approve! a_user | |
| end |