Sha256: 21a40180ec1a8ccaf9aca76d210de4ff7cf7b51d4a8cde7e8190a9add495f2fe
Contents?: true
Size: 436 Bytes
Versions: 17
Compression:
Stored size: 436 Bytes
Contents
class StaticAuthorizationGenerator < Rails::Generator::Base def manifest record do |m| # Migration m.directory(File.join('db','migrate')) m.template( "migration.rb", File.join('db','migrate',"#{Time.now.strftime("%Y%m%d%H%M%S")}_static_authorization.rb")) end end def user_foreign_key # if they pass in Users as an option ... return user_id end end
Version data entries
17 entries across 17 versions & 1 rubygems