Sha256: abe7c7cd70d6eb56b71d27ea45d115ac7601da09d50389376ed0b2fe2e96a112

Contents?: true

Size: 1012 Bytes

Versions: 3

Compression:

Stored size: 1012 Bytes

Contents

module Boxroom
  class Configuration
    attr_accessor :site_name,
                  :logo,
                  :show_footer,
                  :show_users,
                  :show_groups,
                  :show_settings,
                  :show_shared_files,
                  :show_search,
                  :uploads_path,
                  :current_user_method,
                  :sign_in_path,
                  :sign_out_path,
                  :parent_controller

    def initialize
      @site_name         = 'Boxroom'
      @logo              = 'boxroom/logo.png'
      @show_footer       = true
      @show_users        = true
      @show_groups       = true
      @show_settings     = true
      @show_shared_files = true
      @show_search       = true
      @uploads_path      = 'uploads'

      # Integrate with existing user model
      @current_user_method = nil
      @sign_in_path        = nil
      @sign_out_path       = nil

      @parent_controller = 'ApplicationController'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
boxroom-0.0.4 lib/boxroom/configuration.rb
boxroom-0.0.3 lib/boxroom/configuration.rb
boxroom-0.0.2 lib/boxroom/configuration.rb