Sha256: 3af406697338ee1f0013ab551b9936a7f2bf6126af0038bbfcc2e44fbdb46ffd

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require "mascot"
require "mascot/route_constraint"
require "mascot/action_controller_context"
require "mascot/engine"

module Mascot
  Configuration = Struct.new(:sitemap, :routes, :parent_engine)

  def self.configure(&block)
    block.call configuration
  end

  def self.configuration
    @configuration ||= Configuration.new(
      Sitemap.new(file_path: Rails.root.join("app/pages")),
      true,
      Rails.application)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mascot-rails-0.1.5 lib/mascot-rails.rb
mascot-rails-0.1.4 lib/mascot-rails.rb