Rumamge.Phoenix v1.0.0 Rummage.Phoenix.Controller

Controller Module for Rummage.Phoenix. This builds rummage params and performs search action

Usage:

If the application is using default Rummage Hooks

defmodule MyApp.ProductController do
  use MyApp.Web, :controller
  use Rummage.Phoenix.Controller, struct: :product, helpers: MyApp.Router.Helpers
end

If the application is using only some of the Rummage Hooks, say search and sort.

defmodule MyApp.ProductController do
  use MyApp.Web, :controller
  use Rummage.Phoenix.Controller, struct: :product, helpers: MyApp.Router.Helpers,
    only: [:search, :sort]
end

Summary

Functions

This macro includes the helpers functions from different Rummage.Phoenix.Controllers

Functions

__using__(opts) (macro)

This macro includes the helpers functions from different Rummage.Phoenix.Controllers