1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00
varvet--pundit/lib/generators/pundit/install/install_generator.rb
2012-11-19 10:53:14 +01:00

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