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

Version Path
rich_cms-3.0.2 lib/generators/rich_cms.rb
rich_cms-3.0.1 lib/generators/rich_cms.rb
rich_cms-3.0.0 lib/generators/rich_cms.rb
rich_cms-2.1.7 lib/generators/rich_cms.rb
rich_cms-2.1.6 lib/generators/rich_cms.rb
rich_cms-2.1.5 lib/generators/rich_cms.rb
rich_cms-2.1.4 lib/generators/rich_cms.rb
rich_cms-2.1.3 lib/generators/rich_cms.rb
rich_cms-2.1.2 lib/generators/rich_cms.rb
rich_cms-2.1.1 lib/generators/rich_cms.rb