Sha256: 8594bb51a97a59b5c9ad361de1690e2aba6d09c2334dffbe96295278146254f4

Contents?: true

Size: 377 Bytes

Versions: 8

Compression:

Stored size: 377 Bytes

Contents

module Approval
  class Config
    attr_accessor :user_class_name, :comment_maximum,
                  :permit_to_respond_to_own_request

    def initialize
      @user_class_name = "User"
      @comment_maximum = 2000
      @permit_to_respond_to_own_request = false
    end

    def permit_to_respond_to_own_request?
      !!permit_to_respond_to_own_request
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
approval-0.7.1 lib/approval/config.rb
approval-0.7.0 lib/approval/config.rb
approval-0.6.1 lib/approval/config.rb
approval-0.6.0 lib/approval/config.rb
approval-0.5.0 lib/approval/config.rb
approval-0.4.0 lib/approval/config.rb
approval-0.3.7 lib/approval/config.rb
approval-0.3.6 lib/approval/config.rb