Sha256: 272db852f496b9c2dbec18353a075742cdb2153c088ae4cd8115f26cf951f420

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

require "proclaim/engine"

module Proclaim
	mattr_accessor :author_class
	@@author_class = "User"

	mattr_accessor :current_author_method
	@@current_author_method = "current_#{@@author_class.underscore}".to_sym

	mattr_accessor :author_name_method
	@@author_name_method = :name

	mattr_accessor :authentication_method
	@@authentication_method = "authenticate_#{@@author_class.underscore}!".to_sym

	mattr_accessor :excerpt_length
	@@excerpt_length = 500 # 500 characters (won't interrupt words)

	def self.setup
		yield self
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
proclaim-0.1.3 lib/proclaim.rb
proclaim-0.1.2 lib/proclaim.rb
proclaim-0.1.1 lib/proclaim.rb
proclaim-0.1.0 lib/proclaim.rb