diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-27 12:53:13 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:45 +0000 |
commit | 0f43f36254c9bbd1a66f5fd0951d5c2517581e4d (patch) | |
tree | 49190077f7ce5ab895f991054832ec70bf377440 /app/models/user.rb | |
parent | f31ff5e5cfd6247338ad769c713a7f21af4a0623 (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.rb | 1 |
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") |