Sha256: 11809977441cb232030b4860f252b067dadf7d283ef7159fb2bc8988b7beafb1

Contents?: true

Size: 931 Bytes

Versions: 5

Compression:

Stored size: 931 Bytes

Contents

module Naf
  class Configuration
    attr_accessor :schema_name,
                  :model_class,
                  :ui_controller_class,
                  :api_controller_class,
                  :title,
                  :layout,
                  :default_page_options,
                  :api_domain_cookie_name,
                  :simple_cluster_authenticator_cookie_expiration_time

    def initialize
      @model_class = "::ActiveRecord::Base"
      @ui_controller_class = "::ApplicationController"
      @title = "Naf - a Rails Job Scheduling Engine"
      @layout = "naf_layout"
      @default_page_options = [10, 20, 50, 100, 250, 500, 750, 1000, 1500, 2000]
      @api_controller_class = "Naf::ApiSimpleClusterAuthenticatorApplicationController"
      @simple_cluster_authenticator_cookie_expiration_time = 1.week
      @api_domain_cookie_name = "naf_#{Rails.application.class.parent.name.underscore}"
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
naf-2.1.12 lib/naf/configuration.rb
naf-2.1.11 lib/naf/configuration.rb
naf-2.1.10 lib/naf/configuration.rb
naf-2.1.9 lib/naf/configuration.rb
naf-2.1.8 lib/naf/configuration.rb