Sha256: 6ff6787598635b99976454357dcb3b3603d6cb669f795fe3f86a1efd0ab8e9ab
Contents?: true
Size: 346 Bytes
Versions: 19
Compression:
Stored size: 346 Bytes
Contents
module Cms module Fortress module PagesControllerMethods def transit_to_state @page.send(params.fetch(:transition)) if params[:transition].present? end def self.included(base) base.class_eval do before_action :transit_to_state, only: [:create, :update] end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems