Sha256: cde991d9a1dc2036a1a624e3d2451a385e3866bac1ee91195691b2360a59f15e

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

require 'seiten/engine'
require 'seiten/page_store'
require 'seiten/page'

module Seiten

  @config = {
    storage_type: :yaml,
    storage_file: File.join('config', 'navigation.yml'),
    storage_directory: File.join('app', 'pages')
  }

  def self.config
    @config
  end

  module Controllers
    autoload :Helpers, 'seiten/controllers/helpers'
  end

  ActiveSupport.on_load(:action_controller) do
    include Controllers::Helpers
    helper_method :current_page
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seiten-0.0.1 lib/seiten.rb