Skip to content

Commit

Permalink
fix for asset pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh committed May 4, 2012
1 parent e1d37f2 commit b0caf6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/controllers/admin_data/home_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module AdminData
class HomeController < ApplicationController

layout 'admin_data'

def index
respond_to do |format|
format.html
Expand Down
10 changes: 9 additions & 1 deletion lib/admin_data/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ module AdminData
class Engine < Rails::Engine

initializer "admin_data precompile hook" do |app|
app.config.assets.precompile += ['admin_data.js', 'admin_data.css']
app.config.assets.precompile += [
'advance_search/*',
'analytics/*',
'misc/*',
'vendor/*',
'vendor/jquery-ui-1.7.2.custom.css',
'admin_data.js',
'admin_data.css'
]
end

rake_tasks do
Expand Down

0 comments on commit b0caf6b

Please sign in to comment.