Commit graph

15 commits

Author SHA1 Message Date
Philip Arndt
33bfa4dd23 Added support for new code in Refinery CMS since resolve/refinerycms#1234 2012-02-01 16:34:06 +13:00
Pete Higgins
3abf537eaa Fix comment posting. 2012-01-24 14:42:54 -08:00
Philip Arndt
b1e4fd0094 Fixed namespacing for Refinery conventions. 2012-01-17 16:56:24 +13:00
Philip Arndt
f9f56c6f1c Merge branch 'master' into rails-3-1
Conflicts:
	app/controllers/admin/blog/posts_controller.rb
	app/controllers/blog/posts_controller.rb
2011-11-10 09:23:02 +13:00
Philip Arndt
36c005ecd1 Refactored everything (models, helpers) into proper namespace of Refinery::Blog. Requires refinery commit 25162b585b9c4023d39fd1a9796140bfa4ecb909 2011-11-09 22:19:07 +13:00
Jamie Winsor
be7d341532 Namespace BlogController into Blog::BaseController 2011-09-19 18:48:29 -07:00
Jamie Winsor
c40eb83af3 remove duplicate BlogControllerHelper include 2011-09-19 18:35:58 -07:00
Jamie Winsor
d37ef11f63 Abstract filter methods into controller helpers
This will enable users to include the controller helper into their
own controllers to perform common functions - such as finding a blog
post or listing all blog posts.
2011-09-19 15:35:47 -07:00
Jamie Winsor
ba38b63370 remove useless comment 2011-09-04 14:47:24 -07:00
Jamie Winsor
7903bdfed2 refactor factories and add #show tests for posts controller
Do not want to cache classes, but do want to reload models after factory girl:

http://groups.google.com/group/factory_girl/browse_thread/thread/daa24556d90c31fc
http://stackoverflow.com/questions/5145165/associationtypemismatch-and-factorygirl

rails_autolink was removed from Rails 3.1 and abstracted to an external gem
fix display author name and post time on comment show
fix namespace for thanking and moderated flash notices
2011-09-04 14:35:03 -07:00
Jamie Winsor
6212e60f9e index action of blog post controller now caches and sweeps on changes
fix various views which were broken and untested with rails-3-1 upgrade
add request spec tests for admin blog comments
Factory is now FactoryGirl
Fix multiple issues around listing unmoderated comments
use cleaner definitions to set per_page willpaginate attribute on models
update all paginate calls to use new arel representation
reorganize filter sections to be located at top of controller
modify uncategorized class method to activerecord scope and perform a left outer join instead of iterate through an array to find uncategorized posts
move request specs into their proper places
update guardfile to ensure that request specs get run when their respective controllers are modified
Fix show action for AdminBlogComments and added test
Fix redirection link after approving or rejecting a comment
2011-09-03 21:55:30 -07:00
Jamie Winsor
13cafc0947 Syntax fixes for Ruby 1.8.7 2011-08-14 19:32:25 -07:00
Uģis Ozols
109184377f Move per_page pagination stuff into model to dry up posts controller. 2011-07-27 22:41:42 +03:00
Uģis Ozols
164dc27a42 Cucumber tag steps now pass. 2011-07-27 22:32:26 +03:00
Uģis Ozols
3fa8937b95 Rails 3.1 - wip. 2011-07-27 13:46:24 +03:00