Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Senen committed Dec 26, 2017
1 parent de5d937 commit ad05d21
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions app/helpers/admin/agents_helper.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
module AgentsHelper
def agent_attachment_persisted_data(attachment)
return "data-persisted=true" if attachment.persisted?
end
module Admin
module AgentsHelper
def agent_attachment_persisted_data(attachment)
return "data-persisted=true" if attachment.persisted?
end

def agent_attachment_persisted_remove_notice(attachment)
return if attachment.blank?
render partial: 'layouts/admin_messages',
locals: {
alert: t("backend.agents.attachment_destroy_notice")
}
end
def agent_attachment_persisted_remove_notice(attachment)
return if attachment.blank?
render partial: 'layouts/admin_messages',
locals: {
alert: t("backend.agents.attachment_destroy_notice")
}
end

def agents_public_assignments_editor(agent)
agent.new_record? ? "mceNoEditor" : "tinymce"
def agents_public_assignments_editor(agent)
agent.new_record? ? "mceNoEditor" : "tinymce"
end
end
end

0 comments on commit ad05d21

Please sign in to comment.