Module: Buhos::ControllerReview
- Defined in:
- lib/buhos/controller_review.rb
Overview
Helper for review related controllers
Instance Method Summary collapse
-
#sr_tags_prev(sr_id) ⇒ Object
helper function that init tags related methods.
Instance Method Details
#sr_tags_prev(sr_id) ⇒ Object
helper function that init tags related methods
34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/buhos/controller_review.rb', line 34 def (sr_id) halt_unless_auth('review_analyze') @cd_ids=params['cd_id'].split(",").map(&:to_i).delete_if {|v| v==0}.sort @url_back=params['url_back'] @user_id=params['user_id'] @review=SystematicReview[sr_id] raise Buhos::NoReviewIdError, sr_id if !@review @user=User[@user_id] raise Buhos::NoUserIdError, @user_id if !@user @cds=CanonicalDocument.where(:id=>@cd_ids).order(:id) (I18n::t(:List_of_cd_not_compatible)) unless @cds.count==@cd_ids.length end |