znamenica/dneslov

View on GitHub
app/controllers/admin/readings_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Admin::ReadingsController < Admin::CommonController
   protected

   def index_with_list
      %w(with_markups with_descriptions)
   end

   def permitted_params
      params.require(:reading).permit(
         :id, :year_date, :abbreviation, :kind,
         markups_attributes: %i(id begin end position scriptum_id))
   end
end