Sha256: 08a7bcadc01a115fce24e83e32bf689ad4e5a65a1f17d6c6b7effdc8e18396ab
Contents?: true
Size: 399 Bytes
Versions: 43
Compression:
Stored size: 399 Bytes
Contents
module Releaf::ActionController::Ajax extend ActiveSupport::Concern included do helper_method :ajax? before_action :manage_ajax end def ajax? @_ajax || false end def layout ajax? ? false : "releaf/admin" end def manage_ajax @_ajax = params.has_key? :ajax if @_ajax request.query_parameters.delete(:ajax) params.delete(:ajax) end end end
Version data entries
43 entries across 43 versions & 1 rubygems