Sha256: 0292a64184aafbbc559163f43bd38fa061113d9e2440e4b8c497184b22b2a528
Contents?: true
Size: 573 Bytes
Versions: 35
Compression:
Stored size: 573 Bytes
Contents
# Copyright (c) 2011 Arthur Shagall # Released under the MIT license. See LICENSE for details. # Generator for the VirtualEnumerations initializer class VirtualEnumerationsInitializerGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) argument :initializer_name, :type => :string, :default => 'virtual_enumerations' # Writes the virtual enumerations initializer to config/initializers def generate_virtual_enum_initializer template 'virtual_enumerations.rb.erb', "config/initializers/#{initializer_name}.rb" end end
Version data entries
35 entries across 35 versions & 1 rubygems