Skip to content

Commit

Permalink
Slight tweak to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjeffries committed Apr 9, 2018
1 parent 0a78f25 commit 209af76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Person < Flexirest::Base
end
```

In the above example, the `username` call handles things differently if it's called from an object context:
Note in the above code sample, we've used a proc in one of them and a block in the other. There's no difference at all, we just wanted to demonstrate both syntaxes. Also, both will accept a single parameter (`obj` in the above) to receive an optional parameter for the current Flexirest object (if not called from a class context). For example, the `username` call above handles things differently if it's called from an object context:

```ruby
person = Person.new(id: 1234)
Expand Down

0 comments on commit 209af76

Please sign in to comment.