-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
24 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ def render_snippet(slug) | |
page = Spree::Page.find_by_slug(slug) | ||
raw page.body if page | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
db/migrate/20090814142845_add_default_true_to_visible_for_page.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
class AddDefaultTrueToVisibleForPage < ActiveRecord::Migration | ||
def self.up | ||
change_column :spree_pages, :visible, :boolean, :default=> true | ||
change_column :spree_pages, :visible, :boolean, default: true | ||
end | ||
|
||
def self.down | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ def self.down | |
remove_index(:spree_pages, :slug) | ||
end | ||
end | ||
|
4 changes: 2 additions & 2 deletions
4
db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class AddShowInSidebarOptionToPages < ActiveRecord::Migration | ||
def self.up | ||
add_column :spree_pages, :show_in_sidebar, :boolean, :default=> false, :null=>false | ||
add_column :spree_pages, :show_in_sidebar, :boolean, default: false, null: false | ||
end | ||
|
||
def self.down | ||
remove_column :spree_pages, :show_in_sidebar | ||
end | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
db/migrate/20120723144115_add_render_as_partial_for_layout_for_spree_pages.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
class AddPagesStores < ActiveRecord::Migration | ||
|
||
def change | ||
create_table :spree_pages_stores, :id => false do |t| | ||
create_table :spree_pages_stores, id: false do |t| | ||
t.integer :store_id | ||
t.integer :page_id | ||
t.timestamps | ||
end | ||
|
||
add_index :spree_pages_stores, :store_id | ||
add_index :spree_pages_stores, :page_id | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
foreign_link { Faker::Internet.http_url } | ||
end | ||
end | ||
end | ||
end |