lib/rails_toastify.rb in rails_toastify-0.1.2 vs lib/rails_toastify.rb in rails_toastify-0.1.3

- old
+ new

@@ -2,8 +2,24 @@ require_relative "rails_toastify/version" require_relative "rails_toastify/engine" module RailsToastify + class << self + attr_accessor :configuration + end + + def self.setup + self.configuration ||= Configuration.new + yield(configuration) + end + + class Configuration + attr_accessor :framework + + def initialize + @framework = :tailwind + end + end + class Error < StandardError; end - # Your code goes here... end