Skip to content

Refinery Core 4.0 compatibility - #56

Open
wvk wants to merge 7 commits into
refinery:masterfrom
wvk:master
Open

Refinery Core 4.0 compatibility#56
wvk wants to merge 7 commits into
refinery:masterfrom
wvk:master

Conversation

@wvk

@wvk wvk commented Aug 13, 2018

Copy link
Copy Markdown

just that.

@bricesanchez bricesanchez left a comment

Copy link
Copy Markdown
Member

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?

Comment thread Rakefile Outdated
load File.expand_path('../tasks/rspec.rake', __FILE__)

task :default => :spec No newline at end of file
task :default => :spec

Copy link
Copy Markdown
Member

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 }

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member

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|

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as before

Comment thread lib/refinery/calendar.rb Outdated
require 'rails_autolink'
require 'friendly_id'
require 'jquery-ui-rails'
require 'globalize'

Copy link
Copy Markdown
Member

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

Comment thread lib/refinery/calendar/configuration.rb Outdated
include ActiveSupport::Configurable

config_accessor :page_url
# :validate_source_url, :comments_per_page, :posts_per_page,

Copy link
Copy Markdown
Member

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 ?

@bricesanchez

Copy link
Copy Markdown
Member

@wvk I will check the specs after your changes. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants