Sha256: 6edb14d03def806e09797de56a3ac8785f402badca74f4264609b0662fa1db6c
Contents?: true
Size: 586 Bytes
Versions: 27
Compression:
Stored size: 586 Bytes
Contents
module Deface module Generators class OverrideGenerator < Rails::Generators::Base desc "Generates deface overrides" source_root File.expand_path("../templates", __FILE__) class_option :template_engine, :desc => 'Template engine to be invoked (erb or haml).' argument :view, :type => :string argument :name, :type => :string, :default => 'override' def copy_template engine = options[:template_engine] copy_file "override.html.#{engine}.deface", "app/overrides/#{view}/#{name}.html.#{engine}.deface" end end end end
Version data entries
27 entries across 27 versions & 2 rubygems