Sha256: 672ba89460ab946bcb67808897ce4bf3dafb0f32f3b06ac8c40f16a6bbc8dd18

Contents?: true

Size: 344 Bytes

Versions: 12

Compression:

Stored size: 344 Bytes

Contents

# Base {Shamu::JsonApi::Presenter} that all other presenters should
# inherit from.
class ApplicationPresenter < Shamu::JsonApi::Presenter
  include ::Rails.application.routes.url_helpers

  # Override default_url_options in config/environments files.
  self.default_url_options = Rails.application.config.shamu.json_api.default_url_options
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
shamu-0.0.24 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.21 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.20 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.19 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.18 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.17 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.15 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.14 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.13 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.11 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.9 lib/generators/shamu/application_presenter/templates/application_presenter.rb
shamu-0.0.8 lib/generators/shamu/application_presenter/templates/application_presenter.rb