Sha256: 45215940f7c6ff16a4afe6caa7705d668e562f5a015ff77a5463943f03250dd3
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
require 'rails/generators/base' require 'venomi/rails_admin' module Venomi module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc 'Venomi installation generator' def copy_initializer template "translation.rb", "app/models/translation.rb" template "locale.rb", "config/initializers/locale.rb" template "mongoid.rb", "lib/i18n/backend/mongoid.rb" end def install case self.behavior when :invoke Venomi::RailsAdmin.configure when :revoke Venomi::RailsAdmin.rollback end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
venomi-0.0.1 | lib/generators/venomi/install_generator.rb |