Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Mar 16, 2017
1 parent 2c08bce commit c825c1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The library source code is minimal and well tested. It is suggested to read the

```elixir
def deps do
[{:paper_trail, "~> 0.6.0"}]
[{:paper_trail, "~> 0.6.3"}]
end
```

Expand All @@ -116,7 +116,7 @@ The library source code is minimal and well tested. It is suggested to read the

3. install and compile your dependency:

```mix deps.get && mix deps.compile```
```mix deps.get && mix compile```

4. run this command to generate the migration:

Expand Down
7 changes: 3 additions & 4 deletions lib/paper_trail/repo_client.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
defmodule PaperTrail.RepoClient do

@doc """
Gets the configured repo module or defaults to Repo if none configured
"""
def repo, do: Application.get_env(:paper_trail, :repo) || Repo
def originator, do: Application.get_env(:paper_trail, :originator) || nil
def strict_mode, do: Application.get_env(:paper_trail, :strict_mode) || false
def repo, do: Application.get_env(:paper_trail, :repo, Repo)
def originator, do: Application.get_env(:paper_trail, :originator, nil)
def strict_mode, do: Application.get_env(:paper_trail, :strict_mode, false)
end

0 comments on commit c825c1b

Please sign in to comment.