Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling style on a TableFu::Datum should not raise an exception #1

Closed
wants to merge 2 commits into from
Closed

Conversation

jpmckinney
Copy link
Contributor

undefined method `style' for ...:TableFu::Header

Unless :style is passed in the column_options hash, calling style on a TableFu::Datum raises an exception, when it should just return nil.

A consequence of the current behavior is that new users of table-setter, when defining a new table.yml, don't know why they are seeing an exception about undefined method "style" and may give up. style should not be a required option.

The test I added throws an exception unless my change to method_missing is applied.

This pull request was closed.
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.

None yet

1 participant