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



3
4
5
# File 'app/controllers/release_notes/release_notes_controller.rb', line 3

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

#showObject



7
8
9
# File 'app/controllers/release_notes/release_notes_controller.rb', line 7

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