Skip to content

Channel presenter is hard coded towards mobile templates #44

@antonivanopoulos

Description

@antonivanopoulos
def template_path
  notification.class.views[:mobile_sdk][:template_path].call(notification)
end

We just need to let the channel presenter be told what set of templates to use to render things.

Problem I think a the moment here is that not all the views are set up to be specified like this, so we might need something different there too...not sure if the base notification class is still the best place for that information, could probably just live in the presenter class as well.

https://github.com/Papercloud/notify_user/blob/1.0.0-rc/app/models/notify_user/base_notification.rb#L39

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions