Sha256: 927245dfcdedf62b8e04b9e7dc2090f088d71d1a7830405f71c30d5c5928113e
Contents?: true
Size: 338 Bytes
Versions: 22
Compression:
Stored size: 338 Bytes
Contents
module Rspec module Generators class PolicyGenerator < ::Rails::Generators::NamedBase source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates')) 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
22 entries across 22 versions & 5 rubygems