Skip to content

Commit

Permalink
tweaked invitable, raises if invitable does not have a naming option …
Browse files Browse the repository at this point in the history
…set at runtime (should not be possible)
  • Loading branch information
tomichj committed Apr 9, 2016
1 parent 6943ca3 commit 4c15e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .rbenv-gemsets

This file was deleted.

4 changes: 2 additions & 2 deletions lib/invitation/invitable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def invitable_name
elsif invitable_options[:named]
invitable_options[:named]
else
logger.info "WARNING Invitation acts_as_invitable: for #{self.class.name} is not set!"
"a #{self.class.name.humanize}"
raise 'Invitation runtime error: invitable does not have name: or named_by: set, should not be possible! ' +
self.inspect
end
end
end
Expand Down

0 comments on commit 4c15e2c

Please sign in to comment.