style fixes from rubocop
This commit is contained in:
parent
ba6643a394
commit
61f23f88c9
3 changed files with 2 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ module Admin
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Only allow a trusted parameter "white list" through.
|
# Only allow a trusted parameter "white list" through.
|
||||||
def contact_params
|
def contact_params
|
||||||
# params.require(:contact).permit(:social_tag, :email, :facebook, :googleplus, :twitter, :instagram, :public)
|
# params.require(:contact).permit(:social_tag, :email, :facebook, :googleplus, :twitter, :instagram, :public)
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ module Admin
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Only allow a trusted parameter "white list" through.
|
# Only allow a trusted parameter "white list" through.
|
||||||
def photo_params
|
def photo_params
|
||||||
params[:photo]
|
params[:photo]
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
class MigrateRolesForCancancan < ActiveRecord::Migration
|
class MigrateRolesForCancancan < ActiveRecord::Migration
|
||||||
|
|
||||||
def up
|
def up
|
||||||
# Store the number of existing roles
|
# Store the number of existing roles
|
||||||
old_roles = Role.count
|
old_roles = Role.count
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue