Sha256: 1b2dd9d607450e182e4ba5220c09dfd798f2ff51c1498c5f8adc0ec4e23f8458
Contents?: true
Size: 925 Bytes
Versions: 11
Compression:
Stored size: 925 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 "#{Koudoku::Engine.root}/app/views/koudoku/subscriptions" include Rails::Generators::Migration desc "Koudoku installation generator" def install # all entries in app/views/koudoku/subscriptions without . and .. # ==> all FILES in the directory files_to_copy = Dir.entries("#{Koudoku::Engine.root}/app/views/koudoku/subscriptions") - %w[. ..] files_to_copy.each do |file| copy_file file, "app/views/koudoku/subscriptions/#{file}" end end end end
Version data entries
11 entries across 11 versions & 2 rubygems