Class: ReleaseNotes::ReleaseNotesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- ReleaseNotes::ReleaseNotesController
- Defined in:
- app/controllers/release_notes/release_notes_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
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 |