Skip to content

updated plan sharing to be case-insensitive#618

Merged
briri merged 3 commits intoDMPRoadmap:developmentfrom
DigitalCurationCentre:xsrust/bugfixes
Sep 6, 2017
Merged

updated plan sharing to be case-insensitive#618
briri merged 3 commits intoDMPRoadmap:developmentfrom
DigitalCurationCentre:xsrust/bugfixes

Conversation

@xsrust
Copy link
Contributor

@xsrust xsrust commented Sep 1, 2017

Addresses #550

Adds a where_case_insensitive method to User which takes as input the field to search for, and the value to match.

Updated the roles_controller to use this new method and respond with the correct case of the user's email in the message

@xsrust
Copy link
Contributor Author

xsrust commented Sep 6, 2017

Didnt realise this was still sitting in the PR's

This Now also includes an update to the default pdf settings. @sjDCC
All margins are set to 10, font-size is set to 10, and the font is changed to times new roman.
PDF demo below.
sam's plan.pdf

# @param field [string] The name of the field being queried
# @param val [string] The string to search for, case insensitive
# @return [ActiveRecord::Relation] The result of the search
def self.where_case_insensitive(field, val)
Copy link
Contributor

Choose a reason for hiding this comment

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

In Rails 5 we can move this method to the new ApplicationRecord.rb to make it available to all of the models

@briri
Copy link
Contributor

briri commented Sep 6, 2017

Looks good @xsrust

@briri briri merged commit 503c444 into DMPRoadmap:development Sep 6, 2017
@DigitalCurationCentre DigitalCurationCentre deleted the xsrust/bugfixes branch March 12, 2018 12: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.

2 participants