Sha256: 52e3a3eb7627c6d0fbc4e12c34a684624fce3d0a13a1247db127366df8fdde48

Contents?: true

Size: 429 Bytes

Versions: 5

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

require_relative "next_rails/version"

module NextRails
  class Error < StandardError; end

  @@configured = false

  def self.configured? #:nodoc:
    @@configured
  end

  # Default way to setup Next Rails. Run rails generate next_rails:install
  # to create a fresh initializer with all configuration values.
  def self.setup
    @@configured = true
    yield Rails.application.config
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
next_rails_scaffold-0.1.4 lib/next_rails.rb
next_rails_scaffold-0.1.3 lib/next_rails.rb
next_rails_scaffold-0.1.2 lib/next_rails.rb
next_rails_scaffold-0.1.1 lib/next_rails.rb
next_rails_scaffold-0.1.0 lib/next_rails.rb