Mountain Lion (10.8) has three main difference compared to Lion (10.7):
- XCode 4.4 does not install Command Line Tools by default
- X11 isn't available anymore
- The installed version of OpenSSL has some bugs
require 'active_record' | |
require 'activerecord-import' | |
require 'benchmark' | |
require 'pg' | |
include ActiveRecord | |
Base.establish_connection adapter: 'postgresql', | |
encoding: 'unicode', | |
pool: 5, |
# app/models/ability.rb | |
# All front end users are authorized using this class | |
class Ability | |
include CanCan::Ability | |
def initialize(user) | |
user ||= User.new | |
can :read, :all |