Sha256: d25b6b4888bc76ee4280962a02d95d0ec3953d6a7d25049686b26e2634b16726
Contents?: true
Size: 346 Bytes
Versions: 8
Compression:
Stored size: 346 Bytes
Contents
# frozen_string_literal: true module TestUnit module Generators class PolicyGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) def create_policy_test template "policy_test.rb", File.join("test/policies", class_path, "#{file_name}_policy_test.rb") end end end end
Version data entries
8 entries across 8 versions & 2 rubygems