Skip to content

Instantly share code, notes, and snippets.

@smd686s
smd686s / Gemfile
Last active October 27, 2016 02:16
Use Strong Parameters in a Grape API without Rails
gem "actionpack", "~> 4.0.0"
@drogus
drogus / Rakefile.rb
Created July 26, 2013 10:49
This is the example contents of the Rakefile, which you would use to run active record tasks without using Rails. It assumes using the same directories as rails uses: `db/migrate`, `config/database.yml`.
require 'bundler/setup'
require 'active_record'
include ActiveRecord::Tasks
db_dir = File.expand_path('../db', __FILE__)
config_dir = File.expand_path('../config', __FILE__)
DatabaseTasks.env = ENV['ENV'] || 'development'
source :rubygems
gem 'rack'