Skip to content

Instantly share code, notes, and snippets.

@mjtko
Created September 2, 2011 20:06
Show Gist options
  • Save mjtko/1189740 to your computer and use it in GitHub Desktop.
Save mjtko/1189740 to your computer and use it in GitHub Desktop.
error.rb
# app/models/kebab.rb
module Kebab
class << self
def table_name_prefix
'kebab_'
end
end
end
# app/models/kebab/user.rb -- should work now
class Kebab::User < ActiveRecord::Base
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment