Sha256: 5e1cac25d7ba17f50a9e213eea862605f9c565b7b79ae18e9e12c847f692615f
Contents?: true
Size: 712 Bytes
Versions: 3
Compression:
Stored size: 712 Bytes
Contents
class Irwi::Config attr_accessor_with_default :controller_name, 'wiki_pages' attr_accessor_with_default :user_class_name, 'User' attr_accessor_with_default :page_class_name, 'WikiPage' attr_accessor_with_default :page_version_class_name, 'WikiPageVersion' attr_accessor_with_default :page_version_foreign_key, 'page_id' attr_accessor_with_default :formatter do Irwi::Formatters::RedCloth.new end attr_accessor_with_default :comparator do Irwi::Comparators::DiffLcs.new end def page_class page_class_name.constantize end def page_vrsion_class page_version_class_name.constantize end def user_class user_class_name.constantize end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
irwi-0.1.4 | lib/irwi/config.rb |
irwi-0.1.3 | lib/irwi/config.rb |
irwi-0.1.2 | lib/irwi/config.rb |