summaryrefslogtreecommitdiff
path: root/app/models/page.rb
AgeCommit message (Collapse)Author
2009-03-29a few more assertionshukl
2009-03-29refactored the outdated translations functionality. also adding flexibility to allow filtering with custom values.hukl
2009-03-29Added unit test to verify the basic functionality of the find_with_outdated_translations method. Found and fixed some issued on the way. [ x ] Testing rockshukl
2009-03-28added class and instance methods to find untranslated pages and for detecting pages with outdated translations. not publicly exposed yet as I need to test ↵hukl
it first. Also the interface itself needs a review after a good night sleep. Its looking good to me for now.
2009-03-28introducing named scope :drafts for Pagehukl
2009-03-28reducing queries here as well - yayhukl
2009-03-22Finally! The cloning of pages for creating new drafts is now a lot cleaner. I had to search for a while to figure out a better way. Thank you svenfuchs and ↵hukl
joshmh for the support!
2009-03-21only clone attributes if they are for real and not a fallback hukl
2009-03-09only render pages if their published_at date is either nil or set to a time < Time.now. The render_page method will render a 404 otherwise.hukl
2009-03-08added date selector for published_at. Also removed the part that reset the published_at attribute to Time.now. Some cleanupshukl
2009-03-06now we need that againhukl
2009-03-05more entities translated, refined xpath selectorhukl
2009-03-05added begin rescue as too much can go wronghukl
2009-03-05rewriting url in body fields to include the locale before saving the page. xpath magick for the win!hukl
added corresponding test of course
2009-03-04new public_link method for pages which includes localehukl
2009-03-04renamed render_page template to standard_templatehukl
2009-03-03introducing page templates - need to add edit capabilitieshukl
renamed the custom template folder forgot one fix for the new custom template path page templates refined renamed page attribute template to template_name as i suspected it to be a reserved word. it still didn't work until i discovered that simon defined the accessible attributes! That costed me 40 minutes of lifetime. But he apologized ;) tests for public and custom page templates
2009-03-02refactoring of the page cloning and draft creatinghukl
2009-02-28well, seems i forgot the limit clause therehukl
2009-02-27modified the aggregate method to take only head / published pages into accounthukl
2009-02-26the locale stuff as well as the cloning should work now entirely as expected although the cloning itself isn't really a beautyhukl
2009-02-25added locale methodshukl
2009-02-15* removed the auditing observer, we'll do it the old fashioned waysimon
* added permission model * locked down attributes on page model
2009-02-08lots of concept refinementshukl
2009-02-07added globalize2 plugin as well as some modificationshukl
which use the new translation facilities. backend mostly.
2009-02-07added head id to node model which points to thehukl
head of the nodes pages collection. modified tests, importer etc renamed flags to tags
2009-02-03added lots of comments to describe what thehukl
methods are doing. this will get everyone a better start. I hope
2009-02-02now again with custom order !hukl
2009-02-02corrected example to use the new syntaxhukl
2009-02-02refactored the whole tagging thing. now usinghukl
acts_as_taggable_on_steroids instead of a homebrew solution
2009-02-02comments on top of the class to keep the classhukl
itself clean
2009-02-02more comments with alternate querieshukl
2009-02-02aggregation spike with flags associated to pageshukl
Page has now a named_scope :with_flags which accepts an array of flag names and returns corresponding pages. Can be chained with order and limit
2009-02-01added first careful steps for aggregationhukl
2009-01-31Added Page model scaffoldhukl