Sha256: 9361b9e3b87317bfadcb6398bda54fd7e96216eac6d86d96eb22f8ba9167db0e

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 Bytes

Contents

require 'rails/generators'

module Champollion
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      source_root File.expand_path("../../../../app/views", __FILE__)
      desc "Copies all Champollion views into your application's views"

      def copy_views
        view_directory "champollion/translations"
        view_directory "layouts/champollion"
      end
     
      protected

      def view_directory(name)
        directory name, "app/views/champollion/#{name}"
      end 

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
champollion-0.1.7 lib/generators/champollion/views_generator.rb
champollion-0.1.6 lib/generators/champollion/views_generator.rb
champollion-0.1.5 lib/generators/champollion/views_generator.rb