Sha256: 8b1487ab36f8ec6a220301e6e695b237559a84f68bd333be88ce8f3dc350685b

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

module RailsAdminComments
  class Engine < ::Rails::Engine

    initializer "RailsAdminComments precompile hook", group: :all do |app|
      app.config.assets.precompile += %w(rails_admin/rails_admin_comments.js rails_admin/rails_admin_comments.css)
    end

    initializer 'Include RailsAdminComments::Helper' do |app|
      ActionView::Base.send :include, RailsAdminComments::Helper
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_admin_comments-0.2.0 lib/rails_admin_comments/engine.rb
rails_admin_comments-0.1.1 lib/rails_admin_comments/engine.rb
rails_admin_comments-0.1.0 lib/rails_admin_comments/engine.rb