Pete Higgins
6df59131f1
Fix MassAssignmentSecurity::Error in integration test.
2012-04-01 16:23:15 -07:00
Philip Arndt
594dd8ca96
Now supporting FriendlyId 4
2012-02-27 17:08:37 +13:00
Pete Higgins
d353cd556c
Don't need to specify class names here.
2012-02-23 00:29:46 -08:00
Pete Higgins
5eaad8997f
Cleanup next and previous stuff.
2012-02-23 00:20:37 -08:00
Pete Higgins
2537923034
Remove functionality provided by rails.
2012-02-23 00:09:09 -08:00
Pete Higgins
c9ff548329
DRY some Refinery::Blog::Post methods.
2012-02-23 00:02:15 -08:00
Pete Higgins
5ea1b7399b
Change a .map to a .pluck.
2012-02-22 23:50:05 -08:00
Philip Arndt
f82d2c96e4
Merge pull request #195 from substantial/refactor_archive_widget
...
Refactor archive widget
2012-02-22 23:43:01 -08:00
Jeff Shumate
602759af1b
cleanup
2012-02-22 21:00:45 -07:00
Jeff Shumate
4f0b5f8223
add popularity counter to blog posts as well as accessor for recent posts
2012-02-22 20:37:08 -07:00
Pete Higgins
f140ed284f
Refactor .by_archive and .by_year.
2012-02-10 01:07:04 -08:00
Pete Higgins
aaf26e22d2
Refactor all_previous into published_dates_older_than.
2012-02-10 01:06:05 -08:00
Uģis Ozols
34fd7b7b89
Move some of the Refinery::Setting's over to Refinery::Blog.
2012-02-04 21:22:51 +02:00
Philip Arndt
6d06af3400
Converted scopes to class methods.
2012-02-03 11:34:49 +13:00
Philip Arndt
44a059a475
Fix for deprecation in Rails 3.2
2012-01-30 11:48:24 +13:00
Philip Arndt
f8cd5804ad
Merge pull request #187 from substantial/rails-3-2-compat
...
Rails 3 2 compat
2012-01-28 20:03:11 -08:00
Pete Higgins
c89b4dfc1f
attr_accessible :author for Post model.
2012-01-26 16:58:04 -08:00
Jeff Shumate
e274bb1757
add source url for post
2012-01-25 22:27:46 -07: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
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
Michael Gall
0791d3a2e5
Add attr_accessible to blog posts to interact better with page_images
2011-08-31 12:16:40 +10:00
Uģis Ozols
36affef45e
will_paginate is back.
2011-08-25 13:57:59 +03:00
Jamie Winsor
21b19db5a3
refactor engine testing scenario
...
Engine is now tested standalone by leveraging a dummy rails app
Enable Guard for speedy testing
Move factories to the more standard location `spec/factories/*`
Update README with a Testing section
Rename migrations to contain datetimestamps for their version to fix migration order issues when migrating the dummy application
2011-08-03 18:01:32 -07:00
Uģis Ozols
9d23338de2
Array is paginated differently.
2011-07-28 10:37:36 +03:00
Uģis Ozols
d3da59e3f2
Remove per_page pagination code from controllers.
2011-07-27 22:50:02 +03: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
3fa8937b95
Rails 3.1 - wip.
2011-07-27 13:46:24 +03:00
Joe Sak
b78486ce1e
categorization has_many :through should have an ID, and the relationship should be destroyed if the blog post or category is
2011-07-18 14:56:51 -05:00
Joe Sak
98b6052f1f
readonly author just for safety's sake
2011-07-18 14:55:47 -05:00
Johan Bruning
8d031ed0c7
Added ability to disable teaser independent of teaser length
...
I prefer full length articles at all times on blogs and don't like teasers. I added the ability for people to disable teasers so full articles will be shown by default. The teasers can e enabled just like comments from the admin page or trough the normal settings.
However not sure if the post partial now is conform standards. Maybe the helper method "blog_post_teaser" could encapsulate the check which is now done in the view and return the full length article instead of a teaser if the teasers are disabled.
2011-07-04 16:22:48 +02:00
Joe Sak
6cb45c9963
just remove this and it's fine, we won't have to remember to use it for future attrs
2011-06-30 15:25:22 -05:00
Kyle Wilkinson
610cd865f2
Allow custom_teaser field to be updated via forms.
2011-06-21 02:48:07 -07:00
Kyle Wilkinson
ec405cdbea
Make blog_post custom_url field updatable.
2011-06-16 22:52:30 -07:00
Kyle Wilkinson
9320a6a608
Add logic to allow users to override the url for a post from just a title.
2011-06-16 22:52:21 -07:00
Kyle Wilkinson
117de953b7
Make category_ids attribute accessible so that blog categories can be updated.
2011-06-14 02:47:23 -07:00
Philip Arndt
8087ff5133
Merged remote branch 'keram/master'.
2011-05-31 14:39:31 +12:00
Michael Gall
60fc7839f8
Add page-like tab functionality
2011-05-31 13:53:56 +12:00
Philip Arndt
3a5d3f56f3
Wow, I'm getting good at releasing new versions of this. Fixes size (again).
2011-05-28 00:32:20 +12:00
Philip Arndt
2d41081770
use options[:size] not size.
2011-05-28 00:28:31 +12:00
Philip Arndt
ff795b2ab0
Added avatar to blog comments based on email address associated with a gravatar.
2011-05-27 23:41:56 +12:00
Marek
5c58ba20b0
For backwards compatibility must be approximate_ascii and strip_non_ascii by default false
2011-05-19 11:56:46 +02:00
Marek
2d37cbf479
Approximate ascii on blog slugs. For: GH-60
2011-05-19 01:11:45 +02:00
Joe Sak
18f0f69810
Edited app/models/blog_post.rb via GitHub
2011-05-10 15:46:36 -07:00
Philip Arndt
45bbd56a51
Added form fields for SEO and translations.
2011-05-06 00:28:14 +12:00
Philip Arndt
e6af3d9c1a
Add is_seo_meta call to blog posts.
2011-05-05 23:46:28 +12:00
Joe Sak
fe3bb08fcf
tests were failing all over the place
2011-04-22 15:05:55 -05:00
Philip Arndt
5e00a69f8a
Added friendly_id to categories so instead of /categories/1 we get, say, /categories/news
2011-04-02 12:10:59 +13:00
Joe Sak
ac7a6f6636
Acts as taggable installed
2011-03-11 12:58:58 -06:00
Joe Sak
c9c38df5ba
Closes GH-44. Authors are now associated with blog posts by current_user Merge branch 'addingusers'
...
Conflicts:
app/models/blog_post.rb
2011-02-24 22:29:41 -06:00
Joe Sak
0455eb155e
Wrong syntax for AR association
2011-02-24 22:28:04 -06:00