Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started to implement dates in links. [#255]
- Loading branch information
Showing
16 changed files
with
158 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
== Parts that need an urgent cleanup == | ||
|
||
Some parts of zena have become really messy and need an URGENT cleanup. These parts are mostly | ||
related to nested attributes and the cleanup should be made during the move to rails 2.3+. | ||
|
||
Some really ugly parts: | ||
|
||
=== links === | ||
|
||
We support many different ways to alter links and it's becoming hard to maintain: | ||
|
||
node[hot_id] = ZIP | ||
node[link][hot][other_id] = ZIP | ||
node[link][1][other_id] = ZIP along with node[link][1][role] = 'hot' | ||
link[other_id] = ZIP | ||
link[other_zip] = ZIP | ||
|
||
We need 'other_zip' because select_id helper needs to read the value... "select_id" is really bad code. yuk. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class DateInLinks < ActiveRecord::Migration | ||
def self.up | ||
add_column :links, :date, :datetime | ||
end | ||
|
||
def self.down | ||
remove_column :links, :date | ||
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
Oops, something went wrong.