Sha256: b3e58481157a1b7df2b51b3c4868280a95fe826a6c4e5132519850bc98d9eed4
Contents?: true
Size: 597 Bytes
Versions: 3
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true require 'rails/generators' module Ckeditor module Generators class ActionPolicyGenerator < Rails::Generators::Base desc 'Generates policy files for Action Policy' def self.source_root @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) end # copy configuration def copy_policy_files [:picture, :attachment_file].each do |model_name| template "action_policy/#{model_name}_policy.rb", "app/policies/ckeditor/#{model_name}_policy.rb" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems