Class: ReleaseNotes::ReleaseNotesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/release_notes/release_notes_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/release_notes/release_notes_controller.rb', line 5

def index
  @release_notes = "::#{ReleaseNotes.release_note_model}".constantize.all.order('-id')
end

#showObject



9
10
11
# File 'app/controllers/release_notes/release_notes_controller.rb', line 9

def show
  @release_notes = "::#{ReleaseNotes.release_note_model}".constantize.where(version: "#{params[:version]}".gsub('_','.'))
end