Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed May 17, 2024
1 parent 1ad18e7 commit 82dba15
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/turbo_boost/commands/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Engine < ::Rails::Engine
config.turbo_boost_commands = ActiveSupport::OrderedOptions.new
config.turbo_boost_commands[:alert_on_abort] = false # (true, false, "development", "test", "production")
config.turbo_boost_commands[:alert_on_error] = false # (true, false, "development", "test", "production")
config.turbo_boost_commands[:cache_element_attributes] = true # (true, false)
config.turbo_boost_commands[:precompile_assets] = true # (true, false)
config.turbo_boost_commands[:raise_on_invalid_command] = "development" # (true, false, "development", "test", "production")
config.turbo_boost_commands[:resolve_state] = false # (true, false)
Expand Down
5 changes: 0 additions & 5 deletions lib/turbo_boost/commands/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def run
return if command_performed?

command_instance.perform_with_callbacks command_method_name
# command_instance.update_element_attribute_cache if cache_element_attributes?
rescue => error
@command_errored = true
prevent_controller_action error: error if command_requested?
Expand Down Expand Up @@ -209,10 +208,6 @@ def raise_on_invalid_command?
false
end

def cache_element_attributes?
TurboBoost::Commands.config.cache_element_attributes && command_succeeded?
end

def redirect?
return false if controller.request.get?
controller.request.accepts.include? Mime::Type.lookup_by_extension(:turbo_stream)
Expand Down
1 change: 0 additions & 1 deletion test/dummy/config/initializers/turbo_boost.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# Options:
# - alert_on_abort, opt-(in/out) of alerting on abort (true, *false, "development", "test", "production")
# - alert_on_error, opt-(in/out) of alerting on error (true, *false, "development", "test", "production")
# - cache_element_attributes, opt-(in/out) of caching element attributes (*true, false)
# - precompile_assets, opt-(in/out) of precompiling assets (*true, false)
# - raise_on_invalid_command, opt-(in/out) of raising an error if invalid command requested (true, false, *"development", "test", "production")
# - resolve_state, opt-(in/out) of state resolution (true, *false)
Expand Down

0 comments on commit 82dba15

Please sign in to comment.