Sha256: c73a99246e71b4eec474d920f8653f3379cbad6fd3abfb36b8b66dc24b9dfda2
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
require 'rails/generators/active_record' module ActiveRecord module Generators class SimpleTokenAuthGenerator < ActiveRecord::Generators::Base source_root File.expand_path("../templates", __FILE__) def append_to_token_authenticatable_model inject_into_class "app/models/#{name}.rb", name.camelize.constantize, <<-END include SimpleTokenAuth::TokenAuthenticatable END end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_token_auth-0.0.4 | lib/generators/active_record/simple_token_auth_generator.rb |
simple_token_auth-0.0.3 | lib/generators/active_record/simple_token_auth_generator.rb |