afimb/chouette2

View on GitHub
app/controllers/timebands_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class TimebandsController < ChouetteController
  before_action :check_authorize, except: [:show, :index]

  defaults :resource_class => Chouette::Timeband

  respond_to :html

  belongs_to :referential

  def new
    new! do
      build_breadcrumb :new
    end
  end

  private

  def timeband_params
    params.require(:timeband).permit( :name, :start_time, :end_time )
  end
end