Skip to content

Commit

Permalink
Clear out .railsrc
Browse files Browse the repository at this point in the history
  • Loading branch information
athal7 committed Jun 24, 2014
1 parent b7dec4a commit 67172e3
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .railsrc
Original file line number Diff line number Diff line change
@@ -1,30 +0,0 @@
# Rails 2 console
def change_log(stream)
ActiveRecord::Base.connection.instance_variable_set :@logger, Logger.new(stream)
ActiveRecord::Base.clear_active_connections!
end

def show_log
change_log(STDOUT)
end

def hide_log
change_log(nil)
end

def me
Person.find_by_email 'andrew.thal@livingsocial.com'
end

def update_to_paid
Purchase.last.update_attribute(:aasm_state, "paid")
Purchase.last.coupons.each(&:activate!)
end

def give_me_roles
me.roles << Role.all.reject{|r| ["limited_purchase_access", "csr_refund_matrix_user", "csr_refund_matrix_super_user"].include?(r.title) } - me.roles
end

def remove_my_roles
me.people_roles.destroy_all
end

0 comments on commit 67172e3

Please sign in to comment.