lib/rails/generators/joosy/layout_generator.rb in joosy-0.1.0.RC3 vs lib/rails/generators/joosy/layout_generator.rb in joosy-0.1.0.alpha
- old
+ new
@@ -16,17 +16,10 @@
end
protected
def app_path
- unless class_path.size == 1
- puts <<HELP
-Usage: rails generate joosy:layout joosy_app_name/layout_name
-Tip: do not add Layout suffix to layout_name
-HELP
- exit 1
- end
- class_path[0]
+ File.join class_path
end
end
end
end
\ No newline at end of file