def destroy
@repository.destroy
- redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'repository'
+ redirect_to :controller => 'projects',
+ :action => 'settings',
+ :id => @project,
+ :tab => 'repository'
end
def show
User.current.pref[:diff_type] = @diff_type
User.current.preference.save
end
- @cache_key = "repositories/diff/#{@repository.id}/" + Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff_type}")
+ @cache_key = "repositories/diff/#{@repository.id}/" +
+ Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff_type}")
unless read_fragment(@cache_key)
@diff = @repository.diff(@path, @rev, @rev_to)
show_error_not_found unless @diff