Sha256: 39cb86111bcfaf700ff3e3e582346da854dc5d32eebdfd0d66b5535a7d4fcf93

Contents?: true

Size: 472 Bytes

Versions: 34

Compression:

Stored size: 472 Bytes

Contents

module ValidatesTimeliness
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc "Copy ValidatesTimeliness default files"
      source_root File.expand_path('../templates', __FILE__)

      def copy_initializers
        copy_file 'validates_timeliness.rb', 'config/initializers/validates_timeliness.rb'
      end

      def copy_locale_file
        copy_file 'en.yml', 'config/locales/validates_timeliness.en.yml'
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 6 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/validates_timeliness-4.0.2/lib/generators/validates_timeliness/install_generator.rb
validates_timeliness-4.0.2 lib/generators/validates_timeliness/install_generator.rb
validates_timeliness-4.0.1 lib/generators/validates_timeliness/install_generator.rb
validates_timeliness-3.0.15 lib/generators/validates_timeliness/install_generator.rb
validates_timeliness-4.0.0 lib/generators/validates_timeliness/install_generator.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/validates_timeliness-3.0.14/lib/generators/validates_timeliness/install_generator.rb
ae-validates_timeliness-4.0.0 lib/generators/validates_timeliness/install_generator.rb
sp-validates_timeliness-3.1.3 lib/generators/validates_timeliness/install_generator.rb
sp-validates_timeliness-3.1.2 lib/generators/validates_timeliness/install_generator.rb
jc-validates_timeliness-3.1.1 lib/generators/validates_timeliness/install_generator.rb
jc-validates_timeliness-3.1.0 lib/generators/validates_timeliness/install_generator.rb
validates_timeliness-3.0.14 lib/generators/validates_timeliness/install_generator.rb
validates_timeliness-3.0.13 lib/generators/validates_timeliness/install_generator.rb
validates_timeliness-3.0.12 lib/generators/validates_timeliness/install_generator.rb