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

Clarify options #11

Merged
merged 6 commits into from
Jun 24, 2013
Merged

Clarify options #11

merged 6 commits into from
Jun 24, 2013

Conversation

nathanl
Copy link
Owner

@nathanl nathanl commented Jun 21, 2013

@adamhunter does this look good to you?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 9987ee2 on clarify_options into * on master*.

@@ -22,12 +20,23 @@ def results
@results ||= run
end

def options
search_methods.reduce({}) { |hash, method_name|
option_name = method_name.sub(/\Asearch_/, '')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would have made a search_attributes method that looks something like:

def search_attributes
  search_methods.map { |method_name| method_name.sub(/\Asearch_/, '').to_sym }
end

@adamhunter
Copy link
Collaborator

suggested a small refactor, but looks good

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 41dded2 on clarify_options into * on master*.

nathanl added a commit that referenced this pull request Jun 24, 2013
@nathanl nathanl merged commit 47be91f into master Jun 24, 2013
@nathanl nathanl deleted the clarify_options branch June 24, 2013 23:50
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.

3 participants