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.



259
260
261
262
263
264
# File 'lib/rage/configuration.rb', line 259

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.



257
258
259
# File 'lib/rage/configuration.rb', line 257

def allowed_request_origins
  @allowed_request_origins
end

#disable_request_forgery_protectionObject

Returns the value of attribute disable_request_forgery_protection.



257
258
259
# File 'lib/rage/configuration.rb', line 257

def disable_request_forgery_protection
  @disable_request_forgery_protection
end

#protocolObject

Returns the value of attribute protocol.



257
258
259
# File 'lib/rage/configuration.rb', line 257

def protocol
  @protocol
end