Sha256: a489964f79679f906ae58989cc6f91a2f2c28a49f7073e0d9e766a488b3b93ba
Contents?: true
Size: 343 Bytes
Versions: 8
Compression:
Stored size: 343 Bytes
Contents
# frozen_string_literal: true module Rspec module Generators class PolicyGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) def create_policy_spec template "policy_spec.rb", File.join("spec/policies", class_path, "#{file_name}_policy_spec.rb") end end end end
Version data entries
8 entries across 8 versions & 2 rubygems