Last tested using Mac OS X 10.8 Mountain Lion
- Backup .ssh folder to avoid having to regenerate codes for services such as Heroku and Github.
rec_td_stat_name = StatName.find_by_title("Reception Touchdowns") | |
rush_td_stat_name = StatName.find_by_title("Rush Touchdowns") | |
rrtd_stat_name = StatName.find_by_title("Rushing and Receiving Touchdowns") | |
CareerStat.find_all_by_stat_name_id(rrtd_stat_name.id).each do |career_stat| | |
rec_td_career_stat = CareerStat.find_by_season_id_and_player_id_and_stat_name_id(career_stat.season_id, career_stat.player_id, rec_td_stat_name.id) | |
rush_td_career_stat = CareerStat.find_by_season_id_and_player_id_and_stat_name_id(career_stat.season_id, career_stat.player_id, rush_td_stat_name.id) | |
career_stat.update_attributes!(:value => rec_td_career_stat.value.to_i + rush_td_career_stat.value.to_i) | |
end |
require 'rubygems' | |
require 'rake' | |
require 'pathname' | |
module ThumbleMonks | |
class Tastic # Formerly Rake::Static | |
def initialize(app, options={}) | |
@app = app |