Sha256: 2b0f54dfbc6f2eb5fbd037030b7697706a4766f86bebe3737259a427f25e67a6

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

# TODO: Should this support JSON format too?
class Rails::Service::AdminController < Rails::Service::BaseController # rubocop:disable Style/ClassAndModuleChildren
  if Rails::Service.config.admin_action_modules.present?
    Rails::Service.config.admin_action_modules.each do |mod|
      prepend mod
    end
  end

  layout 'admin'

  append_view_path Rails::Service.config.admin_view_resolvers

  before_filter do
    @service_context ||= Rails::Service.context
  end

  def environment
    @env = ENV.sort
  end

  def routing; end

  def rails_properties; end

  def manifest
    @manifest = Rails::Service.manifest
  end

  def config
    @config = Rails::Service.app_config
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-service-0.1.0 app/controller/rails/service/admin_controller.rb