Rename scope :public to :publicly_visible

As of
https://github.com/rails/rails/commit/815c9deae8de557688e1c99aabe30454bcbe5970
scopes can no longer be named 'public', therefore the 'public' scope is
now called 'publicly_visible'.