Sha256: 77e0e6f4070d5bc28e24bb989d53cc6f500a32576704ddf70ea9b1f415dda470
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
class Avo::Current < ActiveSupport::CurrentAttributes # if Rails.env.development? # singleton_class.attr_accessor :previous_attributes # before_reset { # puts ["before_reset->", self.previous_attributes].inspect # if attributes.present? # puts ["has attributes->"].inspect # self.previous_attributes = attributes # end # puts ["before_reset->", self.previous_attributes].inspect # } # attr_accessor :previous_attributes # def previous_attributes=(value) # @previous_attributes = value # end # end attribute :app attribute :license attribute :context, :current_user, :view_context attribute :error_manager attribute :resource_manager attribute :tool_manager attribute :plugin_manager delegate :params, to: :request def request view_context.request || ActionDispatch::Request.empty end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avo-3.0.0.pre14 | lib/avo/current.rb |