Sha256: 73d4e32f2b6502a9e36b8bca77610ecff88ce543e47ac52998fed3904510339b
Contents?: true
Size: 547 Bytes
Versions: 6
Compression:
Stored size: 547 Bytes
Contents
module Gaku class Admin::SchoolYears::SemestersController < Admin::BaseController authorize_resource class: false respond_to :js, :html inherit_resources belongs_to :school_year, parent_class: SchoolYear before_filter :count, only: %i(create destroy index) protected def resource_params return [] if request.get? [params.require(:semester).permit(attributes)] end private def count @count = Semester.count end def attributes %i(starting ending) end end end
Version data entries
6 entries across 6 versions & 2 rubygems