Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Register print.css in ActiveAdmin::Application instead of initializer

  • Loading branch information...
commit 9bc2da96232513d0726e1c0604bb2e69c72a82ef 1 parent 34cd116
@tanraya tanraya authored
View
1  lib/active_admin/application.rb
@@ -222,6 +222,7 @@ def dashboard_section(name, options = {}, &block)
def register_default_assets
register_stylesheet 'active_admin.css', :media => 'screen'
+ register_stylesheet 'print.css', :media => 'print'
if !ActiveAdmin.use_asset_pipeline?
register_javascript 'jquery.min.js'
View
1  lib/generators/active_admin/install/templates/active_admin.rb.erb
@@ -120,7 +120,6 @@ ActiveAdmin.setup do |config|
#
# To load a stylesheet:
# config.register_stylesheet 'my_stylesheet.css'
- config.register_stylesheet 'active_admin/print.css', :media => :print
# You can provide an options hash for more control, which is passed along to stylesheet_link_tag():
# config.register_stylesheet 'my_print_stylesheet.css', :media => :print
Please sign in to comment.
Something went wrong with that request. Please try again.