This website works better with JavaScript.
Home
Explore
Help
Sign In
adrianshort
/
suttonelections
mirror of
https://github.com/adrianshort/suttonelections.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
2
Wiki
Activity
Browse Source
Add Rails-style console script
tags/last-sinatra-version
Adrian Short
6 years ago
parent
bdd48d43e4
commit
ed9e588600
1 changed files
with
11 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
scripts/console
+ 11
- 0
scripts/console
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env ruby
# https://mutelight.org/bin-console
require 'irb'
require 'irb/completion' # autocomplete
require 'bundler/setup'
Bundler.require
require_relative '../models'
set :run, false # Don't run Sinatra just because we've required it
IRB.start
Write
Preview
Loading…
Cancel
Save