lib/public_activity/renderable.rb
# Builds the path to template based on activity key
Builds the path to template based on activity key
Builds the path to template based on activity key
def template_path(key, partial_root)
      path = key.split(".")
      path.delete_at(0) if path[0] == "activity"
      path.unshift partial_root
      path.join("/")
    end
def template_path ( key , partial_root ) path = key . split ( "." ) path . delete_at ( 0 ) if path [ 0 ] == "activity" path . unshift partial_root path . join ( "/" ) end
Builds the path to template based on activity key
Builds the path to template based on activity key
key
<not_specific>
partial_root
<not_specific>