     end
   end
 
+  defmacro options(opts) do
+    quote do
+      Module.put_attribute __MODULE__, :options, unquote(opts)
+    end
+  end
+
   defmacro menu(opts) do
     quote do
       Module.put_attribute __MODULE__, :menu, unquote(opts)

    end
  end



  defmacro controller([do: block]) do
    quote do
      Module.register_attribute(__MODULE__, :controller_methods, accumulate: false, persist: true)

          end
      end

      controller_route = (base_name(module) |> Inflex.underscore |> Inflex.pluralize)
      case Module.get_attribute(__MODULE__, :options) do 
        nil -> nil
        options -> 
          controller_route = Keyword.get(options, :controller_route, controller_route)
      end

      defstruct controller: @controller, 
                controller_methods: Module.get_attribute(__MODULE__, :controller_methods),
                title_actions: &ExAdmin.default_resource_title_actions/2,
                type: :resource,
                resource_name: module,
                query_opts: query_opts,
                controller_route: controller_route,
                menu: menu_opts, 
                actions: actions, 
                member_actions: Module.get_attribute(__MODULE__, :member_actions),
