Skip to content
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

WIP rails 5 support #114

Merged
merged 2 commits into from
Sep 11, 2016
Merged

WIP rails 5 support #114

merged 2 commits into from
Sep 11, 2016

Conversation

Fivell
Copy link
Member

@Fivell Fivell commented Aug 1, 2016

No description provided.

@Fivell Fivell force-pushed the rails5 branch 4 times, most recently from a5f79bb to 6ad4c55 Compare August 1, 2016 19:25
@@ -63,7 +63,7 @@ def active_admin_import(options = {}, &block)

collection_action :do_import, method: :post do
authorize!(ActiveAdminImport::Auth::IMPORT, active_admin_config.resource_class)

params = ActiveSupport::HashWithIndifferentAccess.new params.respond_to?(:to_unsafe_h) ? params.to_unsafe_h : params

Choose a reason for hiding this comment

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

Line is too long. [124/80]

@Fivell Fivell force-pushed the rails5 branch 2 times, most recently from 8c5c6d0 to 4c3990c Compare August 1, 2016 19:30
@@ -63,7 +63,8 @@ def active_admin_import(options = {}, &block)

collection_action :do_import, method: :post do
authorize!(ActiveAdminImport::Auth::IMPORT, active_admin_config.resource_class)

_params = params.respond_to?(:to_unsafe_h) ? params.to_unsafe_h : params

Choose a reason for hiding this comment

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

Do not use prefix _ for a variable that is used.

@Fivell Fivell force-pushed the rails5 branch 5 times, most recently from 77055d4 to 9ff29fd Compare August 4, 2016 06:25
@Fivell
Copy link
Member Author

Fivell commented Aug 26, 2016

refs activeadmin/activeadmin#4556

@@ -63,7 +63,8 @@ def active_admin_import(options = {}, &block)

collection_action :do_import, method: :post do
authorize!(ActiveAdminImport::Auth::IMPORT, active_admin_config.resource_class)

_params = params.respond_to?(:to_unsafe_h) ? params.to_unsafe_h : params

Choose a reason for hiding this comment

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

Do not use prefix _ for a variable that is used.

inject_into_file "app/models/author.rb", " validates_presence_of :name\n validates_uniqueness_of :last_name\n", after: "Base\n"
inject_into_file "app/models/post.rb", " validates_presence_of :author\n", after: ":author\n"
inject_into_file "app/models/author.rb", " validates_presence_of :name\n validates_uniqueness_of :last_name\n", before: "end"
inject_into_file "app/models/post.rb", " validates_presence_of :author\n", before: "end"

Choose a reason for hiding this comment

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

Line is too long. [89/80]

@Fivell
Copy link
Member Author

Fivell commented Sep 11, 2016

fixes #91

@Fivell Fivell merged commit 6a78e34 into master Sep 11, 2016
@Fivell Fivell deleted the rails5 branch September 11, 2016 19:13
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.

None yet

2 participants