Add friendly_id to test group in gem file
This commit is contained in:
parent
f77d187f66
commit
8573b40e6f
1
Gemfile
1
Gemfile
|
@ -21,6 +21,7 @@ group :test do
|
||||||
gem 'rspec-rails'
|
gem 'rspec-rails'
|
||||||
gem 'simplecov'
|
gem 'simplecov'
|
||||||
gem 'systemu'
|
gem 'systemu'
|
||||||
|
gem 'friendly_id', '~> 4.0.10.1'
|
||||||
end
|
end
|
||||||
|
|
||||||
gemspec
|
gemspec
|
||||||
|
|
|
@ -2,8 +2,6 @@ class ProfilesController < ApplicationController
|
||||||
helper_method :current_user
|
helper_method :current_user
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@profile = Profile.friendly.find params[:id]
|
|
||||||
impressionist(@profile, nil, :unique => [:impressionable_type, :impressionable_id])
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_user
|
def current_user
|
||||||
|
|
Loading…
Reference in New Issue