module Card::Env::Serializable
These methods are all handled in serialization and are thus preserved for the integrate_with_delay phase
Attributes
Public Instance Methods
Source
# File lib/card/env/serializable.rb, line 24 def ajax request&.xhr? || params[:simulate_xhr] end
Also aliased as: ajax?
Source
# File lib/card/env/serializable.rb, line 29 def html !controller || params[:format].in?([nil, "html"]) end
Also aliased as: html?
Source
# File lib/card/env/serializable.rb, line 20 def origin Cardio.config.deck_origin || "#{protocol}#{request&.host_with_port}" end