Sha256: 0280b50d681a93f9434cd2d27b2f2418f0a3722708937a49ffb6676150419517
Contents?: true
Size: 676 Bytes
Versions: 2
Compression:
Stored size: 676 Bytes
Contents
require "proclaim/engine" module Proclaim mattr_accessor :author_class @@author_class = "User" mattr_accessor :author_name_method @@author_name_method = :name mattr_accessor :current_author_method @@current_author_method = "current_#{@@author_class.underscore}".to_sym 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) mattr_accessor :editor_toolbar_buttons @@editor_toolbar_buttons = ['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote'] def self.setup yield self end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proclaim-0.2.2 | lib/proclaim.rb |
proclaim-0.2.1 | lib/proclaim.rb |