Sha256: 59563cd0a0d716be0403a1f647fa8f467ec10150148b16a11e99f7137216b16c
Contents?: true
Size: 505 Bytes
Versions: 10
Compression:
Stored size: 505 Bytes
Contents
require "rails/generators/named_base" module RichCms 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
10 entries across 10 versions & 1 rubygems