Permalink
Browse files

Use default stylesheet in generator

  • Loading branch information...
1 parent 529d15f commit 632cb6decbc784148747d933a2a97dd8e7902c0e @bogdan committed Dec 5, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/datagrid/scaffold.rb
View
@@ -8,6 +8,9 @@ def create_scaffold
template "controller.rb.erb", "app/controllers/#{grid_controller_name.underscore}.rb"
template "index.html.erb", "app/views/#{grid_controller_short_name}/index.html.erb"
route("resources :#{grid_controller_short_name}")
+ in_root do
+ inject_into_file "app/assets/stylesheets/application.css", " *= require datagrid", {:before => %r{require_self}} # before all
+ end
end
def grid_class_name

0 comments on commit 632cb6d

Please sign in to comment.