Sha256: af283eb51a7b8a9ff8d0601eafd0c105ba81335cbaecf5ac3244793dc4cfea96
Contents?: true
Size: 472 Bytes
Versions: 2
Compression:
Stored size: 472 Bytes
Contents
require 'rails/generators/base' module Authority module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc "Creates an Authority initializer for your application." def copy_initializer template "authority.rb", "config/initializers/authority.rb" end def copy_forbidden template "403.html", "public/403.html" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
authority-0.3.0 | lib/generators/authority/install_generator.rb |
authority-0.2.0 | lib/generators/authority/install_generator.rb |