Sha256: c889a9f5081adc3e28b084ab01d2e2348cf1876b39efed92fde9060d8bc1fdf1
Contents?: true
Size: 361 Bytes
Versions: 22
Compression:
Stored size: 361 Bytes
Contents
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
Version data entries
22 entries across 22 versions & 1 rubygems