Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
add is_admin? method
Browse files Browse the repository at this point in the history
  • Loading branch information
victorloo committed Jan 31, 2018
1 parent a2cf78a commit b920f8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
class User < ApplicationRecord
end

def is_admin?
Rails.env.development?
end

end

0 comments on commit b920f8b

Please sign in to comment.