Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fcb9065ac3
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.641 kb
if defined?(Refinery::User)
Refinery::User.all.each do |user|
if user.plugins.where(:name => 'refinerycms_search').blank?
user.plugins.create(:name => 'refinerycms_search')
end
end
end
if defined?(Refinery::Page)
unless Refinery::Page.where(:menu_match => "^/search.*$").any?
page = Refinery::Page.create(
:title => "Search Results",
:show_in_menu => false,
:link_url => "/search",
:deletable => false,
:menu_match => "^/search.*$"
)
Refinery::Pages.default_parts.each do |default_page_part|
page.parts.create(:title => default_page_part, :body => nil)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.