Permalink
Browse files

fix typo

  • Loading branch information...
1 parent 0c98282 commit dacad8185ee36c6d5248cec95c380e1b8fad2cbd @flyerhzm flyerhzm committed May 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/ability.rb
View
@@ -2,7 +2,7 @@ class Ability
include CanCan::Ability
def initialize(user)
- user || User.new
+ user ||= User.new
can :read, :all
can :manage, Job, :user_id => user.id
can :manage, Post, :user_id => user.id

0 comments on commit dacad81

Please sign in to comment.