Sha256: 6c805e5c399f950a273c71087b82053115f6a2709cffbdf3c9c80597e2584b1c
Contents?: true
Size: 571 Bytes
Versions: 41
Compression:
Stored size: 571 Bytes
Contents
module Virgo class ViewsGenerator < Rails::Generators::Base source_root File.expand_path('../../../../..', __FILE__) def copy_views Dir["#{engine_root}/app/views/**/*"].reject { |f| f.include?('admin') || f.include?('shortcode_templates') }.each do |abs_path| relative_path = abs_path.gsub("#{engine_root}/", '') unless File.directory?(abs_path) copy_file relative_path, relative_path end end end def engine_root File.expand_path('../../../../..', __FILE__) end end end
Version data entries
41 entries across 41 versions & 1 rubygems