Sha256: 410a7426ddb8686ac18ebfca5b5c66bc9edb1c124fd12a2b337c9c5cc7a1a8a5

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

module Clipster
  class Configuration
    attr_accessor :user_class
    attr_accessor :associates_clip_with_user
    attr_accessor :user_display_attribute

    def associates_clip_with_user
      @associates_clip_with_user || false
    end

    def user_class
      @user_class.constantize || "User".constantize
    end

    def user_class=(user_class)
      @user_class = user_class
    end

    def user_display_attribute
      @user_display_attribute || "email"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clipster-0.5.2 lib/clipster/configuration.rb
clipster-0.4.1 lib/clipster/configuration.rb