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

[Test] Update preview_path for multiple path #2

Closed
wants to merge 1 commit into from

Conversation

camelmasa
Copy link
Owner

No description provided.

@@ -96,7 +96,10 @@ def preview_name
protected
def load_previews #:nodoc:
if preview_path
Dir["#{preview_path}/**/*_preview.rb"].each{ |file| require_dependency file }
paths = preview_path.is_a?(String) ? [preview_path] : preview_path
Copy link

Choose a reason for hiding this comment

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

This can be changed to:

paths = Array(preview_path)

Copy link
Owner Author

Choose a reason for hiding this comment

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

It's very cool... :octocat: Thanks.

@camelmasa
Copy link
Owner Author

@lunks Thanks for review 😄

I created PR rails#16836

@camelmasa camelmasa closed this Sep 8, 2014
@camelmasa camelmasa deleted the change-mailer-previews branch September 8, 2014 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants