Sha256: afd5b6cec7098a0d800d5ff5a9904d1ee7092ebbe7171f96e9d737e9a116356d
Contents?: true
Size: 806 Bytes
Versions: 7
Compression:
Stored size: 806 Bytes
Contents
# this generator based on rails_admin's install generator. # https://www.github.com/sferik/rails_admin/master/lib/generators/rails_admin/install_generator.rb require 'rails/generators' # http://guides.rubyonrails.org/generators.html # http://rdoc.info/github/wycats/thor/master/Thor/Actions.html module Koudoku class ViewsGenerator < Rails::Generators::Base # Not sure what this does. source_root File.expand_path("../../../../app/views/koudoku/subscriptions", __FILE__) include Rails::Generators::Migration desc "Koudoku installation generator" def install ["_pricing_table.html.erb", "edit.html.erb", "index.html.erb", "new.html.erb", "show.html.erb"].each do |file| copy_file file, "app/views/koudoku/subscriptions/#{file}" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems