Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use default stylesheet in generator

  • Loading branch information...
commit 632cb6decbc784148747d933a2a97dd8e7902c0e 1 parent 529d15f
@bogdan authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/datagrid/scaffold.rb
View
3  lib/datagrid/scaffold.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.