Permalink
Browse files

from work

  • Loading branch information...
1 parent 58b020f commit bde53ac0c63aca3e70cae71b21da0af1a8129887 @matthutchinson committed May 29, 2012
Showing with 3 additions and 12 deletions.
  1. +2 −1 bin/htdump
  2. +1 −1 irbrc
  3. +0 −10 railsrc
View
@@ -8,7 +8,8 @@
#
# Matthew Hutchinson 2012 - HouseTrip SA.
-DB_NAME=housetrip_development
+# DB_NAME=housetrip_development
+DB_NAME=housetrip_production_like
REMOTE_SERVER=db1p
REMOTE_DIR=/mnt/dumps
LOCAL_DIR=/tmp/dumps
View
2 irbrc
@@ -11,7 +11,7 @@ rescue
end
# handy methods
-def save_to(filename, data)
+def save_to(data, filename)
file = File.new(filename, "w")
file.write(data.to_s)
file.close
View
10 railsrc
@@ -34,16 +34,6 @@ def routes(long_output = false)
end
end
-# get a specific route via index or name
-def route(index_or_name)
- route = case index_or_name
- when Integer
- Rails.application.routes.routes[ index_or_name ]
- when Symbol # named route
- Rails.application.routes.named_routes.get index_or_name
- end
-end
-
# show app name and env in irb prompt
app_name = Rails.application.class.parent_name.downcase
app_env = Rails.env[0...3]

0 comments on commit bde53ac

Please sign in to comment.