Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,12 @@ import 'controllers'
**Note:** These modifications will continue to work when upgrading Turbo via the [turbo-rails](https://github.com/hotwired/turbo-rails) gem. You can [read more](https://github.com/marcoroth/turbo_power-rails/issues/2) for the reasoning behind these adjustments.


## Usage

### Actions from `turbo_ready`

* [`turbo_stream.invoke(method, *args, selector: nil, camelize: true, id: nil)`](https://github.com/hopsoft/turbo_ready)

### Actions from `turbo-morph`

* [`turbo_stream.morph(target, html = nil, **attributes, &block)`](https://github.com/marcoroth/turbo-morph)
## Custom Actions

### DOM Actions

* `turbo_stream.graft(target, parent, **attributes)`
* [`turbo_stream.morph(target, html = nil, **attributes, &block)`](https://github.com/marcoroth/turbo-morph)
* `turbo_stream.inner_html(target, html = nil, **attributes, &block)`
* `turbo_stream.insert_adjacent_html(target, html = nil, position: 'beforeend', **attributes, &block)`
* `turbo_stream.insert_adjacent_text(target, text, position: 'beforebegin', **attributes)`
Expand Down
1 change: 0 additions & 1 deletion lib/turbo_power.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require "turbo-rails"
require "turbo_ready"

require_relative "turbo_power/version"
require_relative "turbo_power/engine"
Expand Down
8 changes: 4 additions & 4 deletions test/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
require_relative "boot"

require "action_controller/railtie"
require "action_cable/engine"
require "active_job/railtie"
require "active_model/railtie"
require "active_record/railtie"
# require "action_cable/engine"
# require "active_job/railtie"
# require "active_model/railtie"
# require "active_record/railtie"
require "sprockets/railtie"

Bundler.require(*Rails.groups)
Expand Down
1 change: 0 additions & 1 deletion turbo_power.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ Gem::Specification.new do |spec|
]

spec.add_dependency "turbo-rails", "~> 1.3.0"
spec.add_dependency "turbo_ready"
end