Sha256: b266347ca725ae49c8ca3131e37c3ea4b48910fb63b219b21ba8146e346167ed

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

class SimpleFormInstallGenerator < Rails::Generator::Base

  def manifest
    record do |m|
      m.directory 'config/initializers'
      m.template  'simple_form.rb', 'config/initializers/simple_form.rb'

      m.directory 'config/locales'
      m.template  locale_file, 'config/locales/simple_form.en.yml'
    end
  end

  private

    def locale_file
      @locale_file ||= '../../../lib/simple_form/locale/en.yml'
    end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_form-1.0.4 generators/simple_form_install/simple_form_install_generator.rb
simple_form-1.0.3 generators/simple_form_install/simple_form_install_generator.rb
simple_form-1.0.2 generators/simple_form_install/simple_form_install_generator.rb
simple_form-1.0.1 generators/simple_form_install/simple_form_install_generator.rb
simple_form-1.0.0 generators/simple_form_install/simple_form_install_generator.rb