Sha256: 5efb6bf95d479c9468943209281675b67a07362117b0b98dc9e42e594f9d5978
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
require 'rails/generators/migration' class FeaturesGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path("../templates", __FILE__) def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end def create_featureable_file copy_file "initializer.rb", "config/initializers/acts_as_featureable.rb" migration_template "create_features.rb", "db/migrate/create_features.rb" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_featureable-0.0.2 | lib/generators/features_generator.rb |
acts_as_featureable-0.0.1 | lib/generators/features_generator.rb |