Current section

7 Versions

Jump to

Compare versions

4 files changed
+7 additions
-6 deletions
  @@ -78,4 +78,4 @@
78 78 {<<"optional">>,true},
79 79 {<<"repository">>,<<"hexpm">>},
80 80 {<<"requirement">>,<<"~> 1.7">>}]]}.
81 - {<<"version">>,<<"1.5.1">>}.
81 + {<<"version">>,<<"1.5.2">>}.
  @@ -308,12 +308,13 @@ defmodule ExCatalog do
308 308 end
309 309
310 310 @doc """
311 - Change the status active or disabled, this controls which products the user can see, (only the active products)
311 + Change the status active or disabled, this controls which products the user can see, (by default only the active products are displayed)
312 312
313 313 ## Examples
314 314
315 - iex> ExCatalog.active(:category, "111222233")
316 - iex> ExCatalog.active(:product, "111222233")
315 + iex> id = "1111-2222-3333-4444"
316 + iex> ExCatalog.active(:category, id)
317 + iex> ExCatalog.active(:product, id)
317 318
318 319
319 320 """
  @@ -4,7 +4,7 @@ defmodule ExCatalog.Meta do
4 4
5 5 schema "catalog_metas" do
6 6 field(:key, :string)
7 - field(:data, :string)
7 + field(:data, :map)
8 8 belongs_to(:product, ExCatalog.Product)
9 9 end
  @@ -1,7 +1,7 @@
1 1 defmodule ExCatalog.MixProject do
2 2 use Mix.Project
3 3
4 - @version "1.5.1"
4 + @version "1.5.2"
5 5 @source_url "https://github.com/mithereal/ExCatalog"
6 6
7 7 def project do