mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
11 lines
314 B
Ruby
11 lines
314 B
Ruby
module Pundit
|
|
module Generators
|
|
class InstallGenerator < ::Rails::Generators::Base
|
|
source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
|
|
|
def copy_application_policy
|
|
template 'application_policy.rb', 'app/policies/application_policy.rb'
|
|
end
|
|
end
|
|
end
|
|
end
|