conversionfoundry / breeze

A Ruby on Rails CMS for brochure-style websites.
Other
3 stars 2 forks source link

Updating custom type name in the backend does not affect the front end. #19

Closed albandiguer closed 11 years ago

albandiguer commented 11 years ago

Renamed the component in the backend, the same name appears in the selection box in the front end.

ShaneNZ commented 11 years ago

Updating the custom type name on the backend also does not update the name of the partial that Breeze is looking for e.g create a custom type called foo, partial is foo.html.erb - rename the custom type to bar, partial is still foo.html.erb (shown on the right side of the admin interface, also verified via page HTML generation).

isaacfreeman commented 11 years ago

I suspect that this was probably a deliberate design decision at some point in Breeze's history, so that admins could rename a custom type without breaking the appearance on the front end.

It seems reasonable to change it, but perhaps there should be an "are you sure?" message if people change a custom type name in admin.

isaacfreeman commented 11 years ago

Pull request submitted for this issue.