Skip to content

Added to Innsights::Report the ability to overwrite the user group configuration, with nil - #7

Open
bhserna wants to merge 1 commit into
innku:masterfrom
bhserna:group-nil-fix
Open

Added to Innsights::Report the ability to overwrite the user group configuration, with nil#7
bhserna wants to merge 1 commit into
innku:masterfrom
bhserna:group-nil-fix

Conversation

@bhserna

@bhserna bhserna commented Nov 5, 2012

Copy link
Copy Markdown
Contributor

Innsights config

Innsights.setup do
  user :User do
    group :company
  end
end

Before

report = Innsights::Report.new("Mention", user: user)
report.group.object.should eq user.company

report = Innsights::Report.new("Mention", user: user, group: nil)
report.group.object.should eq user.company

After

report = Innsights::Report.new("Mention", user: user)
report.group.object.should eq user.company

report = Innsights::Report.new("Mention", user: user, group: nil)
report.group.should eq nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant