Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 24 lines (21 sloc) 0.641 kB
368a1e1 @ugisozols Make usable with Refinery CMS 2.0.0.
ugisozols authored
1 if defined?(Refinery::User)
536583b @ugisozols Use Refinery namespace in migration and seed file.
ugisozols authored
2 Refinery::User.all.each do |user|
4f3a2ff @joemsak A generator and /search page, since the controller requires it
joemsak authored
3 if user.plugins.where(:name => 'refinerycms_search').blank?
368a1e1 @ugisozols Make usable with Refinery CMS 2.0.0.
ugisozols authored
4 user.plugins.create(:name => 'refinerycms_search')
4f3a2ff @joemsak A generator and /search page, since the controller requires it
joemsak authored
5 end
6 end
7 end
8
368a1e1 @ugisozols Make usable with Refinery CMS 2.0.0.
ugisozols authored
9 if defined?(Refinery::Page)
536583b @ugisozols Use Refinery namespace in migration and seed file.
ugisozols authored
10 unless Refinery::Page.where(:menu_match => "^/search.*$").any?
11 page = Refinery::Page.create(
4f3a2ff @joemsak A generator and /search page, since the controller requires it
joemsak authored
12 :title => "Search Results",
2b7aefb @ugisozols Don't show search results page in menu.
ugisozols authored
13 :show_in_menu => false,
4f3a2ff @joemsak A generator and /search page, since the controller requires it
joemsak authored
14 :link_url => "/search",
15 :deletable => false,
16 :menu_match => "^/search.*$"
17 )
18
368a1e1 @ugisozols Make usable with Refinery CMS 2.0.0.
ugisozols authored
19 Refinery::Pages.default_parts.each do |default_page_part|
4f3a2ff @joemsak A generator and /search page, since the controller requires it
joemsak authored
20 page.parts.create(:title => default_page_part, :body => nil)
21 end
22 end
368a1e1 @ugisozols Make usable with Refinery CMS 2.0.0.
ugisozols authored
23 end
Something went wrong with that request. Please try again.