Skip to content

Instantly share code, notes, and snippets.

View carlesso's full-sized avatar

Enrico Carlesso carlesso

View GitHub Profile
@ichiban
ichiban / rails_admin.rb
Created October 23, 2013 01:38
Rails AdminとDoorkeeperを一緒に使うときは、この設定で幸せになれる気がする
# ...
# Include specific models (exclude the others):
config.included_models = Dir.new(Rails.root.join('app', 'models')).entries.map{|entry| $1.camelize if entry =~ /^(\w+)\.rb$/ }.compact! + ['Doorkeeper::Application', 'Doorkeeper::AccessGrant', 'Doorkeeper::AccessToken']
# ...
@edgar
edgar / Ruby.sublime-build
Created October 17, 2011 01:47
SublimeText2 - Check ruby syntax after save file
# Edit file: /path/to/SublimeText2/Packages/Ruby/Ruby.sublime-build
{
"cmd": ["/home/edgar/.rvm/rubies/ruby-1.9.2-p290/bin/ruby", "-cw", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}