Skip to content

Commit

Permalink
Rescuing record not found in index
Browse files Browse the repository at this point in the history
  • Loading branch information
hdgarrood committed Mar 11, 2012
1 parent 3d040cb commit 7624417
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/release_notes_controller.rb
Expand Up @@ -64,6 +64,8 @@ def index
@versions.reject! {|version| !project_ids.include?(version.project_id) && @issues_by_version[version].blank?}

@release_notes_required_cf_id = CustomField.find_by_name(ReleaseNotesHelper::CONFIG['issue_required_field']).id
rescue ActiveRecord::RecordNotFound
render_404
end

def show
Expand Down

0 comments on commit 7624417

Please sign in to comment.