```ruby
Spree::BaseController.class_eval do

  before_filter :get_pages
  helper_method :current_page
  
  def current_page
    @page ||= Spree::Page.find_by_path(request.path)
  end
  
  def get_pages
    return if request.path =~ /^\/+admin/
    @pages ||= Spree::Page.visible.order(:position)
  end

end
```

Add the ability to use a global content snipperts page.
user
```ruby
Spree::BaseController.class_eval do
  before_filter :get_pages
  helper_method :current_page

  def current_page
    @page ||= Spree::Page.find_by_path(request.path)
  end

  def get_pages
    return if request.path =~ /^\/+admin/
    @pages ||= Spree::Page.visible.order(:position)
    @content_snippets ||= Spree::Page.where(title: "Content Snippets").first
  end
end
```
assistant