Skip to content

Commit

Permalink
get the scaffold woking again
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Sep 5, 2011
1 parent a20739a commit 6a7616d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 41 deletions.
7 changes: 6 additions & 1 deletion lib/generators/guard/scaffold/scaffold_generator.rb
Expand Up @@ -3,12 +3,17 @@ module Guard
class ScaffoldGenerator < Rails::Generators::NamedBase
include Rails::Generators::ResourceHelpers

source_root File.expand_path('../templates', __FILE__)
source_root File.expand_path('../../templates', __FILE__)

# check_class_collision :suffix => "Guard"

def create_guard_files
template 'guard.yml', File.join('app', 'guards', class_path, "#{plural_file_name}_guard.yml")
end

#TODO should be coming from the actual generator
def actions
['index', 'show', 'new', 'create', 'edit', 'update', 'destroy']
end
end
end
20 changes: 0 additions & 20 deletions lib/generators/guard/scaffold/templates/guard.rb

This file was deleted.

20 changes: 0 additions & 20 deletions lib/generators/guard/templates/guard.rb

This file was deleted.

1 change: 1 addition & 0 deletions templates/ixtlan-guard.template
Expand Up @@ -3,4 +3,5 @@
gem 'ruby-maven', '0.8.3.0.3.0.28.3'
gem 'ixtlan-guard', :path => '../..'
gem 'ixtlan-core' # since rmvn can not resolve it from 'ixtlan-guard'
gem 'ixtlan-generators'
# vim: syntax=Ruby

0 comments on commit 6a7616d

Please sign in to comment.