Sha256: 37fa6614aa4b717495b5f68ec660e0d557812c4616ba74ba356c4792bc5f486f
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
require 'rails/generators/base' module OauthService module Generators class ModelsGenerator < Rails::Generators::Base source_root File.expand_path("../../templates/models", __FILE__) desc "Create inherited Models in your app/models folder." def create_models MODELS.each do |model| template "#{model}.rb", "app/models/#{model}.rb" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oauth_service-0.0.2 | lib/generators/oauth_service/models_generator.rb |
oauth_service-0.0.1 | lib/generators/oauth_service/models_generator.rb |