Class: Rage::Configuration::Cable

Inherits:
Object
  • Object
show all
Defined in:
lib/rage/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCable

Returns a new instance of Cable.



240
241
242
243
244
245
# File 'lib/rage/configuration.rb', line 240

def initialize
  @protocol = Rage::Cable::Protocol::ActioncableV1Json
  @allowed_request_origins = if Rage.env.development? || Rage.env.test?
    /localhost/
  end
end

Instance Attribute Details

#allowed_request_originsObject

Returns the value of attribute allowed_request_origins.



238
239
240
# File 'lib/rage/configuration.rb', line 238

def allowed_request_origins
  @allowed_request_origins
end

#disable_request_forgery_protectionObject

Returns the value of attribute disable_request_forgery_protection.



238
239
240
# File 'lib/rage/configuration.rb', line 238

def disable_request_forgery_protection
  @disable_request_forgery_protection
end

#protocolObject

Returns the value of attribute protocol.



238
239
240
# File 'lib/rage/configuration.rb', line 238

def protocol
  @protocol
end