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

Version Path
jrhicks-static-generators-0.2.1 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.2.2 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.2.3 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.2.4 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.2.5 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.3.0 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.3.2 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.3.3 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.3.4 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.3.6 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.4.0 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.4.1 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.4.2 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.4.4 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.4.5 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.4.7 rails_generators/static_authorization/static_authorization_generator.rb
jrhicks-static-generators-0.5.0 rails_generators/static_authorization/static_authorization_generator.rb