Sha256: c8f02d96e28ba42ac0f63853621ac5527a35026f5e8235ae96e64aa4eac8ba32

Contents?: true

Size: 222 Bytes

Versions: 25

Compression:

Stored size: 222 Bytes

Contents

require "godmin/generators/named_base"

class Godmin::PolicyGenerator < Godmin::Generators::NamedBase
  def create_policy
    template "policy.rb", File.join("app/policies", class_path, "#{file_name}_policy.rb")
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
godmin-2.3.0 lib/generators/godmin/policy/policy_generator.rb
godmin-2.2.2 lib/generators/godmin/policy/policy_generator.rb
godmin-2.2.1 lib/generators/godmin/policy/policy_generator.rb
godmin-2.2.0 lib/generators/godmin/policy/policy_generator.rb
godmin-2.1.0 lib/generators/godmin/policy/policy_generator.rb
godmin-2.0.0 lib/generators/godmin/policy/policy_generator.rb
godmin-1.5.0 lib/generators/godmin/policy/policy_generator.rb
godmin-1.4.0 lib/generators/godmin/policy/policy_generator.rb
godmin-1.3.1 lib/generators/godmin/policy/policy_generator.rb
godmin-1.3.0 lib/generators/godmin/policy/policy_generator.rb
godmin-1.2.0 lib/generators/godmin/policy/policy_generator.rb
godmin-1.1.0 lib/generators/godmin/policy/policy_generator.rb
godmin-1.0.0 lib/generators/godmin/policy/policy_generator.rb
godmin-0.12.4 lib/generators/godmin/policy/policy_generator.rb
godmin-0.12.3 lib/generators/godmin/policy/policy_generator.rb
godmin-0.12.2 lib/generators/godmin/policy/policy_generator.rb
godmin-0.12.1 lib/generators/godmin/policy/policy_generator.rb
godmin-0.12.0 lib/generators/godmin/policy/policy_generator.rb
godmin-0.11.2 lib/generators/godmin/policy/policy_generator.rb
godmin-0.11.1 lib/generators/godmin/policy/policy_generator.rb