Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
codeodor committed Oct 16, 2012
1 parent f50178e commit da4dbb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -32,7 +32,9 @@ Your exhibits will look something like this:
# app/exhibits/league_exhibit.rb

class LeagueExhibit < DisplayCase::Exhibit
def self.applicable_to?(object)
# Note: the context parameter is new in the master branch, not yet released in the gem.
# If you get an argument error, that's why
def self.applicable_to?(object, context)
object.class.name == 'League'
end

Expand Down

0 comments on commit da4dbb0

Please sign in to comment.