Sha256: ae6d311ad6281d064a5f9c8d952f1e119dd5fcc730f11657a60ee5ac35bfd55b
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
require "rails/generators/named_base" module Rich module Generators class Base < Rails::Generators::Base def self.source_root File.expand_path File.join(File.dirname(__FILE__), "rich", generator_name, "templates") end end module Migration def self.included(base) base.extend ClassMethods end module ClassMethods def next_migration_number(dirname) Time.now.strftime "%Y%m%d%H%M%S" end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
rich_cms-2.1.0 | lib/generators/rich.rb |
rich_i18n-1.3.0 | lib/generators/rich.rb |