Skip to content

Commit

Permalink
Even better, the old generator work but throws message
Browse files Browse the repository at this point in the history
* The old generator should be called with the new arguments,
  it's exactly the same as the new one.

* This file should be removed someday I guess.
  • Loading branch information
calas authored and apotonick committed Jan 26, 2011
1 parent c03fbb0 commit da7bdfb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/generators/cells/cell_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ module Generators
class CellGenerator < ::Cells::Generators::Base
source_root File.expand_path('../../templates', __FILE__)

def create_cell_file
template 'cell.rb', File.join('app/cells', class_path, "#{file_name}_cell.rb")
end

hook_for(:template_engine)
hook_for(:test_framework)

def say_deprecated
say "====> This generator is now DEPRECATED. <====", :red
say "Please use:"
Expand Down

0 comments on commit da7bdfb

Please sign in to comment.