Module: Plutonium::Core::Controller

Instance Method Summary collapse

Methods included from Plutonium::Core::Controllers::AssociationResolver

#resolve_association

Methods included from Plutonium::Core::Controllers::EntityScoping

#scoped_entity_class, #scoped_entity_param_key, #scoped_entity_route_key, #scoped_entity_strategy, #scoped_to_entity?

Methods included from Plutonium::Core::Controllers::Bootable

#current_engine, #current_package

Instance Method Details

#rail?Boolean

Whether the modern icon rail is active for this request. Resolves the per-controller ‘rail` setting, falling back to the shell default. Public: the resource layout calls `controller.rail?`.

Returns:

  • (Boolean)


64
65
66
67
# File 'lib/plutonium/core/controller.rb', line 64

def rail?
  return _rail_enabled unless _rail_enabled.nil?
  Plutonium.configuration.shell == :modern
end