This commit is contained in:
differentreality 2013-07-15 13:11:18 +03:00
parent 79ba3c5ea6
commit 7c834347f9
4 changed files with 9 additions and 16 deletions

View file

@ -14,15 +14,6 @@ module ApplicationHelper
var.strftime("%a, %d %b")
end
end
def get_supporter_level(registration)
@conference.supporter_registrations.find_by_sql("SELECT *, supporter_levels.title as title
FROM supporter_registrations
INNER JOIN supporter_levels
ON supporter_registrations.supporter_level_id = supporter_levels.id
WHERE supporter_registrations.conference_id = #{@conference.id}
AND supporter_registrations.registration_id = #{registration.id}").first
end
def add_association_link(association_name, form_builder, div_class, html_options = {})
link_to_add_association "Add " + association_name.to_s.singularize, form_builder, div_class, html_options.merge(:class => "assoc btn btn-success")