Sha256: 2015618fee95074d1e0ba03417d1b0714d88e19521b301bfbd53842d9bc11941
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 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_initializer.rb", "config/initializers/authority.rb" end def copy_forbidden template "403.html", "public/403.html" end def create_authorizers_directory empty_directory "app/authorizers" # creates empty directory if none; doesn't empty the directory end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authority-0.9.0 | lib/generators/authority/install_generator.rb |