Sha256: 8ae97a2a3db9039d05a4fcfc807f84efbf75f4d9010fdd1931130e985fea0072

Contents?: true

Size: 544 Bytes

Versions: 8

Compression:

Stored size: 544 Bytes

Contents

module FinePrint
  class Configuration
    # Attributes

    # Can be set in initializer only
    ENGINE_OPTIONS = [
      :helpers,
      :layout,
      :authenticate_user_proc,
      :authenticate_manager_proc,
      :current_user_proc,
      :contract_published_proc
    ]

    # Can be set in initializer or passed as an argument
    # to FinePrint controller methods
    CONTROLLER_OPTIONS = [
      :redirect_to_contracts_proc
    ]

    (ENGINE_OPTIONS + CONTROLLER_OPTIONS).each do |option|
      attr_accessor option
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fine_print-6.0.3 lib/fine_print/configuration.rb
fine_print-6.0.2 lib/fine_print/configuration.rb
fine_print-6.0.1 lib/fine_print/configuration.rb
fine_print-6.0.0 lib/fine_print/configuration.rb
fine_print-5.0.0 lib/fine_print/configuration.rb
fine_print-4.0.1 lib/fine_print/configuration.rb
fine_print-4.0.0 lib/fine_print/configuration.rb
fine_print-3.1.0 lib/fine_print/configuration.rb