Sha256: aab6a0b47ac55486254225f5aadf040cd2c52e497228a4eb43e38170d6373904
Contents?: true
Size: 472 Bytes
Versions: 21
Compression:
Stored size: 472 Bytes
Contents
require "rails/generators" module Generators module Avo class FilterGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) class_option :select, type: :boolean namespace "avo:filter" def create_resource_file type = "boolean" type = "select" if options[:select] template "filters/#{type}_filter.rb", "app/services/avo/filters/#{singular_name}.rb" end end end end
Version data entries
21 entries across 21 versions & 1 rubygems