Sha256: 6e67bfc47ae2fbd0aa1a32c1c818414fb55dbe5e53021a56608ef0425f9a19e3

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

module RoleBasedSecurity
  module Generators
    class RoleBasedSecurityGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      def generate_role_based_security
        copy_file "role.rb", "app/models/role.rb"
        copy_file "user_role.rb", "app/models/user_role.rb"
        copy_file "20110510155623_create_roles.rb", "db/migrate/20110510155623_create_roles.rb"
        copy_file "20110510155626_create_user_roles.rb", "db/migrate/20110510155626_create_user_roles.rb"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
role_based_security-0.5.0 lib/generators/role_based_security/role_based_security_generator.rb