aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Xie <xieconnect@gmail.com>2010-07-26 09:09:49 +0800
committerHans de Graaff <hans@degraaff.org>2010-07-28 20:01:58 +0200
commit6d611497aae6792d1d28b0492dd9caf296b243e3 (patch)
tree5fd04c237fb225a4ffebd010584f262733593ddc
parentAgendaItem implemented and tested (diff)
downloadcouncil-webapp-6d611497aae6792d1d28b0492dd9caf296b243e3.tar.gz
council-webapp-6d611497aae6792d1d28b0492dd9caf296b243e3.tar.bz2
council-webapp-6d611497aae6792d1d28b0492dd9caf296b243e3.zip
Fix indention in User model
-rw-r--r--app/models/user.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 90c335e..d43c6f7 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -9,8 +9,8 @@ class User < ActiveRecord::Base
timestamps
end
- has_many :votes, :foreign_key => 'owner_id',
- :dependent => :destroy, :order => 'created_at DESC'
+ has_many :votes, :foreign_key => 'owner_id',
+ :dependent => :destroy, :order => 'created_at DESC'
# This gives admin rights to the first sign-up.
# Just remove it if you don't want that
@@ -64,8 +64,8 @@ class User < ActiveRecord::Base
true
end
- def administrator?
- role.to_sym == :admin
- end
+ def administrator?
+ role.to_sym == :admin
+ end
end