Sha256: 7aab3b77ced044cc65f1f90254e756202f95f0e8b438fb27c54c0fddf983a592

Contents?: true

Size: 389 Bytes

Versions: 9

Compression:

Stored size: 389 Bytes

Contents

module ReleaseNotes
  class ReleaseNotesController < ApplicationController
    layout "release_notes/application"
    
    def index
      @release_notes = "::#{ReleaseNotes.release_note_model}".constantize.all.order('-id')
    end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
release_notes-1.0.4 app/controllers/release_notes/release_notes_controller.rb
release_notes-1.0.3 app/controllers/release_notes/release_notes_controller.rb
release_notes-1.0.1 app/controllers/release_notes/release_notes_controller.rb
release_notes-1.0.0 app/controllers/release_notes/release_notes_controller.rb
release_notes-0.5.1 app/controllers/release_notes/release_notes_controller.rb
release_notes-0.4.0 app/controllers/release_notes/release_notes_controller.rb
release_notes-0.3.4 app/controllers/release_notes/release_notes_controller.rb
release_notes-0.3.3 app/controllers/release_notes/release_notes_controller.rb
release_notes-0.2.1 app/controllers/release_notes/release_notes_controller.rb