Sha256: b7d8efbf1526ac1ba95a14b93f67f36d9f09483e36db8e00c60f0e7e86bb0867
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
require 'active_record' module IrwiMod::Extensions::Models autoload :WikiPage, 'irwi_mod/extensions/models/wiki_page' autoload :WikiPageVersion, 'irwi_mod/extensions/models/wiki_page_version' autoload :WikiPageAttachment, 'irwi_mod/extensions/models/wiki_page_attachment' end ActiveRecord::Base.instance_eval do def acts_as_wiki_page( config = {} ) include IrwiMod::Extensions::Models::WikiPage end def acts_as_wiki_page_version( config = {} ) include IrwiMod::Extensions::Models::WikiPageVersion end def acts_as_wiki_page_attachment include IrwiMod::Extensions::Models::WikiPageAttachment yield if block_given? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
irwi_mod-0.0.2 | lib/irwi_mod/extensions/models.rb |
irwi_mod-0.0.1 | lib/irwi_mod/extensions/models.rb |