Sha256: be6ef0970e6171026d07e7d5cac5393dc15774b8340ca7627a8750a08fa993ff
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
module Elabs class NotesController < ContentApplicationController ALLOWED_NESTED_FROM = %w[language license tag user project].freeze ALLOWED_ORDER_FROM = %w[published_at updated_at].freeze before_action :set_note, only: %i[show] # GET /notes # GET /notes.json def index @notes = scope_request(Note.published).page(params[:page]).per(self.class::MAX_ITEMS_PER_PAGE) end # GET /notes/1 # GET /notes/1.json def show; end private # Use callbacks to share common setup or constraints between actions. def set_note @note = Note.find_publicly_visible(params[:id]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
elabs-3.0.0 | app/controllers/elabs/notes_controller.rb |
elabs-2.0.0 | app/controllers/elabs/notes_controller.rb |
elabs-2.0.0.pre | app/controllers/elabs/notes_controller.rb |