lib/tynn/environment.rb in tynn-1.0.0 vs lib/tynn/environment.rb in tynn-1.1.0

- old
+ new

@@ -4,11 +4,11 @@ # Examples # # require "tynn" # require "tynn/environment" # - # Tynn.helpers(Tynn::Environment) + # Tynn.plugin(Tynn::Environment) # # Tynn.environment # => :development # # Tynn.development? # => true # Tynn.production? # => false @@ -16,10 +16,10 @@ # # By default, the environment is based on `ENV["RACK_ENV"]`. # # Examples # - # Tynn.helpers(Tynn::Environment, env: ENV["RACK_ENV"]) + # Tynn.plugin(Tynn::Environment, env: ENV["RACK_ENV"]) # module Environment # Internal: Configures current environment. def self.setup(app, env: ENV["RACK_ENV"]) app.set(:environment, (env || :development).to_sym)