-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refinery Core 4.0 compatibility #56
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wvk !
This extension really needed to be updated.
Could you read my review and make the changes?
Rakefile
Outdated
task :default => :spec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use the new syntax
task default: :spec
present(@page) | ||
respond_with (@events) do |format| | ||
format.html | ||
# format.rss { render layout: false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not leave this commented code in the pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are using format.html
only, you should keep the previous code with present(@page)
and removing respond_to :html
# you can use meta fields from your model instead (e.g. browser_title) | ||
# by swapping @page for @event in the line below: | ||
present(@page) | ||
respond_with (@event) do |format| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as before
lib/refinery/calendar.rb
Outdated
require 'rails_autolink' | ||
require 'friendly_id' | ||
require 'jquery-ui-rails' | ||
require 'globalize' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could safely remove this dependency globalize
include ActiveSupport::Configurable | ||
|
||
config_accessor :page_url | ||
# :validate_source_url, :comments_per_page, :posts_per_page, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove all config you don't use ?
@wvk I will check the specs after your changes. :) |
just that.