Permalink
Browse files

added admin? convenience method to project model

  • Loading branch information...
1 parent 0ef8277 commit abe59f9998287de6b50dc5feb64852f7998ffbfd Gillian Dugay committed Apr 10, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/custom_project_patch.rb
@@ -18,6 +18,9 @@ module ClassMethods
end
module InstanceMethods
+ def admin?
+ !!project_type.to_s.downcase['admin']
+ end
end
end
end

0 comments on commit abe59f9

Please sign in to comment.