Open cllns opened 7 years ago
We'd like to use vanilla-ujs in Hanami but we can't depend on railties.
vanilla-ujs
railties
This also helps people using Sinatra, and other Ruby web frameworks. This is a first step towards freeing vanilla-ujs from Rails :)
I'm very flexible and not tied to any specific changes here. This PR:
Rails
ujs.rb
Ujs
Vanilla::Ujs
We'd like to use
vanilla-ujs
in Hanami but we can't depend onrailties
.This also helps people using Sinatra, and other Ruby web frameworks. This is a first step towards freeing
vanilla-ujs
from Rails :)I'm very flexible and not tied to any specific changes here. This PR:
Rails
is defined.ujs.rb
fromRails
toUjs
, since that's more idiomatic.Vanilla::Ujs
module is first defined in this file, and not in the version file.railties
as a development dependency, so contributors to this gem can test the Rails integration without any trouble.