Sha256: d22196f0975f708874f662c5657c8b55bac23895573ca0e51f624a14901354b3
Contents?: true
Size: 421 Bytes
Versions: 3
Compression:
Stored size: 421 Bytes
Contents
# frozen_string_literal: true module Forms class Formulas::ApplicationController < ApplicationController before_action :set_form before_action :set_formula protected # Use callbacks to share common setup or constraints between actions. def set_form @form = Form.find(params[:form_id]) end def set_formula @formula = @form.formulas.find(params[:formula_id]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems