Sha256: 819cad77e866145280aef739d131b050f6ebce306638cffc18039655bae80afc

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

module Udongo
  class Config
    attr_accessor :default_locale, :locales, :prefix_routes_with_locale, :host,
                  :time_zone, :allow_new_tags, :flexible_content_types,
                  :project_name

    def initialize
      @default_locale = :nl
      @locales = %w(nl en fr de)
      @prefix_routes_with_locale = true
      @host = 'udongo.dev'
      @time_zone = 'Brussels'
      @allow_new_tags = true
      @flexible_content_types = %w(text image)
      @project_name = 'Udongo'
    end

    def prefix_routes_with_locale?
      prefix_routes_with_locale === true
    end

    def allow_new_tags?
      allow_new_tags === true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
udongo-1.0.3 lib/udongo/config.rb
udongo-1.0.2 lib/udongo/config.rb
udongo-1.0.1 lib/udongo/config.rb
udongo-1.0.0 lib/udongo/config.rb
udongo-0.1.0 lib/udongo/config.rb