class Pokey::Generators::HookGenerator

Public Instance Methods

create_hook_file() click to toggle source
# File lib/generators/rails/hook/hook_generator.rb, line 11
def create_hook_file
  template "hook.rb", "#{Pokey.hook_dir}/#{file_path.tr('/', '_')}_hook.rb"
end