Sha256: 774164c8eae27cdba1fa3d8d92f3bb6972865adab44be089d5aa68d3ea4e720e

Contents?: true

Size: 849 Bytes

Versions: 1

Compression:

Stored size: 849 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
      
      ["_card.html.erb","_pricing_table.html.erb", "edit.html.erb", "index.html.erb", "new.html.erb", "show.html.erb", "unauthorized.html.erb"].each do |file|
        copy_file file, "app/views/koudoku/subscriptions/#{file}"
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
koudoku-0.0.11 lib/generators/koudoku/views_generator.rb