Sha256: dd0db3db93885f36dd16be184f9742cb2cc60c5b0f9aaad537c3124749b97fd9

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

require 'rails'

module Formize

  class InstallGenerator < ::Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    unless ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1
      def copy_assets
        copy_file '../../../../assets/javascripts/formize.js',  'public/javascripts/formize.js'
        # copy_file '../../../../assets/stylesheets/formize.css', 'public/stylesheets/formize.css'
      end
    end

    def copy_initializer_file
      template "initializer.rb", "config/initializers/formize.rb"
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formize-0.0.9 lib/generators/formize/install/install_generator.rb