Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Allowing user defined Email class to be used. - #270

Merged
wingrunr21 merged 2 commits into
thoughtbot:masterfrom
diego-aslz:master
Feb 27, 2017
Merged

wingrunr21 merged 2 commits into
thoughtbot:masterfrom
diego-aslz:master

Conversation

@diego-aslz

Copy link
Copy Markdown
Contributor

This gives the user more flexibility when parsing an e-mail. By default, Griddler::Email is used.

private

delegate :processor_class, :processor_method, :email_service, to: :griddler_configuration
delegate :processor_class, :email_class, :processor_method, :email_service, to: :griddler_configuration

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [105/80]

Comment thread lib/griddler/configuration.rb Outdated
@email_class ||= Griddler::Email
end

def email_class=(klass)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This setter is unnecessary. This attribute should be implemented like how :processor_method and :reply_delimiter are done.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, an attr_writer would do the trick. Want me to change it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please

private

delegate :processor_class, :processor_method, :email_service, to: :griddler_configuration
delegate :processor_class, :email_class, :processor_method, :email_service, to: :griddler_configuration

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [105/80]

@diego-aslz

Copy link
Copy Markdown
Contributor Author

@wingrunr21 it's done :)

@wingrunr21

Copy link
Copy Markdown
Contributor

Excellent. I'll merge and cut a release.

@wingrunr21
wingrunr21 merged commit 841b935 into thoughtbot:master Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants