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

Adjust the field path to fit Ruby conventions #467

Merged
merged 1 commit into from
Feb 20, 2016
Merged

Adjust the field path to fit Ruby conventions #467

merged 1 commit into from
Feb 20, 2016

Conversation

c-lliope
Copy link
Contributor

Problem:

File paths within the lib folder have inconsistent pluralization.
According to ruby convention, each class should be stored in a file
where the parent directories correspond to the namespaces of the class.

For us, our Administrate::Field classes
are stored in administrate/fields.
The incorrect pluralization breaks Ruby's convention.

Solution:

Move lib/administrate/fields -> lib/administrate/field.

c-lliope added a commit to thoughtbot/administrate-field-image that referenced this pull request Feb 14, 2016
Problem:

Administrate is updating its field paths in
thoughtbot/administrate#467.

This change breaks the path references in this gem.

Solution:

Follow Administrate's lead and update the field paths.
Problem:

File paths within the `lib` folder have inconsistent pluralization.
According to ruby convention, each class should be stored in a file
where the parent directories correspond to the namespaces of the class.

For us, our `Administrate::Field` classes
are stored in `administrate/fields`.
The incorrect pluralization breaks Ruby's convention.

Solution:

Move `lib/administrate/fields` -> `lib/administrate/field`.
@c-lliope c-lliope closed this Feb 20, 2016
@c-lliope c-lliope deleted the gw-paths branch February 20, 2016 05:53
@c-lliope c-lliope merged commit 12699c9 into master Feb 20, 2016
kkelleey added a commit to kkelleey/blog that referenced this pull request May 5, 2016
This is to conform to the changes in the Administrate API

thoughtbot/administrate#467

I should have caught this sooner, it was causing errors on admin/cities
and admin/countries
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.

1 participant