Class: Datagrid::Generators::Views
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Datagrid::Generators::Views
- Defined in:
- lib/datagrid/generators/views.rb
Instance Method Summary collapse
Instance Method Details
#copy_views ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/datagrid/generators/views.rb', line 9 def copy_views Dir.glob(File.join(self.class.source_root, "**", "*")).each do |file_path| relative_path = file_path.sub("#{self.class.source_root}/", "") next if relative_path == "_order_for.html.erb" copy_file(relative_path, File.join("app/views/datagrid", relative_path)) end end |