Class: Para::FiltersGenerator

Inherits:
Generators::NamedBase show all
Includes:
Admin::BaseHelper, Generators::FieldHelpers, SearchHelper
Defined in:
lib/generators/para/filters/filters_generator.rb

Instance Method Summary collapse

Methods included from Admin::BaseHelper

#find_partial_for, #find_relation_name_for, #flash_message, #registered_components_options, #resource_title_for, #template_path_lookup

Methods included from Helpers::ResourceName

#resource_name

Methods included from SearchHelper

#distinct_search_results, #filtered?, #fulltext_search_param_for, #searchable_attributes

Methods included from Generators::NameHelpers

#namespaced_class_name, #plural_namespaced_path, #singular_namespaced_path

Instance Method Details

#generate_formObject



9
10
11
12
13
14
# File 'lib/generators/para/filters/filters_generator.rb', line 9

def generate_form
  template(
    "_filters.html.haml",
    "app/views/admin/#{ plural_namespaced_path }/_filters.html.haml"
  )
end