aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-27 12:53:13 +0000
committerLouise Crow <louise.crow@gmail.com>2013-12-04 09:32:45 +0000
commit0f43f36254c9bbd1a66f5fd0951d5c2517581e4d (patch)
tree49190077f7ce5ab895f991054832ec70bf377440 /app/models/user.rb
parentf31ff5e5cfd6247338ad769c713a7f21af4a0623 (diff)
Display batch requests for user on 'my requests' page
This is the most rudimentary possible way to give them access to the batch request urls, pending #1239
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 730550301..e63ce8129 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -42,6 +42,7 @@ class User < ActiveRecord::Base
has_many :comments, :order => 'created_at desc'
has_one :profile_photo
has_many :censor_rules, :order => 'created_at desc'
+ has_many :info_request_batches, :order => 'created_at desc'
attr_accessor :password_confirmation, :no_xapian_reindex
validates_confirmation_of :password, :message => _("Please enter the same password twice")