-
Notifications
You must be signed in to change notification settings - Fork 102
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
WIP rails 5 support #114
Conversation
a5f79bb
to
6ad4c55
Compare
@@ -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 |
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.
Line is too long. [124/80]
8c5c6d0
to
4c3990c
Compare
@@ -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 |
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.
Do not use prefix _
for a variable that is used.
77055d4
to
9ff29fd
Compare
@@ -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 |
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.
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" |
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.
Line is too long. [89/80]
… no support in active_admin
fixes #91 |
No description provided.