remove unused aspect helper methods
This commit is contained in:
parent
73172f9c22
commit
04e53fa1fc
1 changed files with 0 additions and 25 deletions
|
|
@ -9,12 +9,6 @@ module AspectGlobalHelper
|
|||
end
|
||||
end
|
||||
|
||||
def aspects_without_post(aspects, post)
|
||||
aspects.reject do |aspect|
|
||||
AspectVisibility.exists?(:aspect_id => aspect.id, :post_id => post.id)
|
||||
end
|
||||
end
|
||||
|
||||
def aspect_badges(aspects, opts={})
|
||||
str = ''
|
||||
aspects.each do |aspect|
|
||||
|
|
@ -44,21 +38,6 @@ module AspectGlobalHelper
|
|||
str.html_safe
|
||||
end
|
||||
|
||||
def aspect_li(aspect, opts={})
|
||||
param_string = ""
|
||||
if opts.size > 0
|
||||
param_string << '?'
|
||||
opts.each_pair do |k, v|
|
||||
param_string << "#{k}=#{v}"
|
||||
end
|
||||
end
|
||||
"<li>
|
||||
<a href='/aspects/#{aspect.id}#{param_string}'>
|
||||
#{aspect.name}
|
||||
</a>
|
||||
</li>".html_safe
|
||||
end
|
||||
|
||||
def link_for_aspect(aspect, opts={})
|
||||
opts[:params] ||= {}
|
||||
params ||= {}
|
||||
|
|
@ -78,10 +57,6 @@ module AspectGlobalHelper
|
|||
end
|
||||
end
|
||||
|
||||
def current_aspect?(aspect)
|
||||
!@aspect.nil? && !@aspect.instance_of?(Symbol) && @aspect.id == aspect.id
|
||||
end
|
||||
|
||||
def aspect_or_all_path(aspect)
|
||||
if @aspect.is_a? Aspect
|
||||
aspect_path @aspect
|
||||
|
|
|
|||
Loading…
Reference in a new issue