Class: Wallaby::Configuration::Features

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

Overview

Features global configuration

Instance Attribute Summary collapse

Instance Attribute Details

To globally configure whether to use turbolinks or not.

By default, turbolinks is disabled.

Examples:

To enable turbolinks:

Wallaby.config do |config|
  config.features.turbolinks_enabled = true
end

Returns:

  • (Boolean)

    a feture flag of turbolinks, default to false.



21
22
23
24
25
26
27
# File 'lib/wallaby/configuration/features.rb', line 21

def turbolinks_enabled
  Deprecator.alert method(__callee__), from: '0.3.0', alternative: <<~INSTRUCTION
    If Turbolinks is included, it will be used by Wallaby. If you want to disable it,
    you can either take `turbolinks` gem out from your Gemfile
    or override the `frontend` partial by taking it out.
  INSTRUCTION
end