Permalink
Browse files

Change generator base class

  • Loading branch information...
1 parent 5c282c8 commit 190712a29d0f264307c5551744d0a9c7ae6cc7f3 @bogdan committed Feb 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/datagrid/scaffold.rb
View
@@ -1,9 +1,9 @@
require "rails/generators"
-class Datagrid::Scaffold < Rails::Generators::Base
+class Datagrid::Scaffold < Rails::Generators::NamedBase
source_root File.expand_path(__FILE__ + "/../../../templates")
- def create_uploader_file
+ def create_scaffold
template "grid.rb.erb", "app/grids/#{grid_class_name.underscore}.rb"
template "controller.rb.erb", "app/controllers/#{grid_controller_name.underscore}.rb"
template "index.html.erb", "app/views/#{grid_controller_short_name}/index.html.erb"

0 comments on commit 190712a

Please sign in to comment.