Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds the ability for a page to redirect immediately to its first chil…
…d if it has a child that is not a draft page if that option is set in refinery/admin/pages/page/edit.
- Loading branch information
Showing
4 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
db/migrate/20090822092032_add_skip_to_first_child_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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddSkipToFirstChildToPages < ActiveRecord::Migration | ||
def self.up | ||
add_column :pages, :skip_to_first_child, :boolean, :default => false | ||
end | ||
|
||
def self.down | ||
remove_column :pages, :skip_to_first_child | ||
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