Sha256: ac4db824524352025b2f95b8ce2b8871f5bc95ad7bc35a65dc7d16f7dc1bc0e0
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
require 'rails/generators/base' module Errapi module Rails module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc "Creates an errapi initializer and copy locale files to your application." #class_option :orm def copy_initializer template "errapi.rb", "config/initializers/errapi.rb" end def copy_locale copy_file "../../../config/locales/en.yml", "config/locales/errapi.en.yml" end def show_readme readme "README.txt" if behavior == :invoke end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
errapi-rails-0.1.0 | lib/generators/errapi-rails/install_generator.rb |