Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent fb22472 commit 1cd94bc6cd118a8363d1944150810eb16efb9323 @bbenezech bbenezech committed Dec 7, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 README.md
View
@@ -31,17 +31,20 @@ Hoeven][plukevdh], and [Rein Henrichs][reinh].
RailsAdmin model configuration is now lazy loaded.
```ruby
-config.model do
+config.model 'Team' do
...
end
# or
-
-rails_admin do
- ...
+class Team
+ rails_admin do
+ ...
+ end
end
```
+won't load the Team model.
+
Incidentally, you are only allowed one configuration block per model.
## Features

0 comments on commit 1cd94bc

Please sign in to comment.