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

Rename name to internal_name and title to public_name #434

Merged
merged 1 commit into from
Aug 2, 2020

Conversation

denny
Copy link
Owner

@denny denny commented Aug 2, 2020

Adds ShinyName concern, which provides a .name method (falls back from public_name to internal_name).

Removes ShinyTitle concern, which generated titles from names before saving a record (if title was blank).

@codecov
Copy link

codecov bot commented Aug 2, 2020

Codecov Report

Merging #434 into main will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #434   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          119       119           
  Lines         2186      2186           
=========================================
  Hits          2186      2186           
Impacted Files Coverage Δ
app/controllers/admin/blogs_controller.rb 100.00% <ø> (ø)
app/controllers/admin/pages/sections_controller.rb 100.00% <ø> (ø)
app/controllers/admin/pages_controller.rb 100.00% <ø> (ø)
app/models/blog.rb 100.00% <100.00%> (ø)
app/models/concerns/shiny_name.rb 100.00% <100.00%> (ø)
app/models/concerns/shiny_slug.rb 100.00% <100.00%> (ø)
app/models/page.rb 100.00% <100.00%> (ø)
app/models/page_section.rb 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c06c89b...a61cb20. Read the comment docs.

@denny denny merged commit 20a3d0f into main Aug 2, 2020
@denny denny deleted the refactor/name-and-title-attributes branch August 2, 2020 16:18
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.

None yet

1 participant