Skip to content

Commit

Permalink
Change generator base class
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Feb 26, 2013
1 parent 5c282c8 commit 190712a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datagrid/scaffold.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 190712a

Please sign in to comment.