Sha256: 58cee2c42b36bbe77424196b046c5c66d9b6b24687874f6eb44de13516e455a3
Contents?: true
Size: 574 Bytes
Versions: 1
Compression:
Stored size: 574 Bytes
Contents
# require "adva_comments/version" require "rails" require "active_record/has_many_comments" require "action_controller/acts_as_commentable" require "invisible_captcha" module AdvaComments class Engine < Rails::Engine initializer "add assets to precompilation list" do |app| app.config.assets.precompile += %w(adva_comments/admin/comments.css) end initializer "adva_comments.init" do ActiveRecord::Base.send :include, ActiveRecord::HasManyComments ActionController::Base.send :include, ActionController::ActsAsCommentable end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adva_comments-0.1.0 | lib/adva_comments.rb |