From 0895660735b181a5c063586418a9b3a972949963 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Thu, 15 Mar 2012 10:02:58 -0400 Subject: [PATCH] asset pipeline fix --- admin_data.gemspec | 1 + lib/admin_data/railtie.rb | 4 ++-- lib/admin_data/version.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin_data.gemspec b/admin_data.gemspec index c1b090b..54cd288 100644 --- a/admin_data.gemspec +++ b/admin_data.gemspec @@ -20,4 +20,5 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] s.add_dependency("will_paginate", ">= 3.0.0") + s.add_dependency("rails", "~> 3.1") end diff --git a/lib/admin_data/railtie.rb b/lib/admin_data/railtie.rb index b444c31..f2d8e39 100644 --- a/lib/admin_data/railtie.rb +++ b/lib/admin_data/railtie.rb @@ -1,8 +1,8 @@ module AdminData class Engine < Rails::Engine - initializer "admin_data.setup" do - # + initializer "admin_data precompile hook" do |app| + app.config.assets.precompile += ['admin_data.js', 'admin_data.css'] end rake_tasks do diff --git a/lib/admin_data/version.rb b/lib/admin_data/version.rb index 4066943..35a1ae0 100644 --- a/lib/admin_data/version.rb +++ b/lib/admin_data/version.rb @@ -1,3 +1,3 @@ module AdminData - VERSION = '1.1.16' + VERSION = '1.2.0' end