Module: Granite

Defined in:
lib/granite.rb,
lib/granite/base.rb,
lib/granite/util.rb,
lib/granite/error.rb,
lib/granite/rails.rb,
lib/granite/action.rb,
lib/granite/config.rb,
lib/granite/context.rb,
lib/granite/version.rb,
lib/granite/projector.rb,
lib/granite/represents.rb,
lib/granite/assign_data.rb,
lib/granite/action/error.rb,
lib/granite/translations.rb,
lib/granite/context_proxy.rb,
lib/granite/routing/cache.rb,
lib/granite/routing/route.rb,
lib/granite/action/subject.rb,
lib/granite/routing/mapper.rb,
lib/granite/action/policies.rb,
lib/granite/projector/error.rb,
lib/granite/routing/caching.rb,
lib/granite/routing/mapping.rb,
lib/granite/action/performer.rb,
lib/granite/routing/declarer.rb,
lib/granite/action/performing.rb,
lib/granite/action/projectors.rb,
lib/granite/projector/helpers.rb,
lib/granite/action/transaction.rb,
lib/granite/context_proxy/data.rb,
lib/granite/action/precondition.rb,
lib/granite/action/translations.rb,
lib/granite/context_proxy/proxy.rb,
lib/granite/action/preconditions.rb,
lib/granite/represents/attribute.rb,
lib/granite/represents/reflection.rb,
app/controllers/granite/controller.rb,
lib/granite/action/instrumentation.rb,
lib/granite/projector/translations.rb,
lib/granite/action/types/collection.rb,
lib/granite/action/exceptions_handling.rb,
lib/granite/action/transaction_manager.rb,
lib/granite/action/policies/any_strategy.rb,
lib/granite/projector/controller_actions.rb,
app/controllers/granite/controller/translations.rb,
lib/granite/action/policies/always_allow_strategy.rb,
lib/granite/action/preconditions/base_precondition.rb,
lib/generators/granite/install_controller_generator.rb,
lib/granite/action/preconditions/object_precondition.rb,
lib/granite/action/preconditions/embedded_precondition.rb,
lib/granite/action/policies/required_performer_strategy.rb,
lib/granite/action/transaction_manager/transactions_stack.rb

Defined Under Namespace

Modules: ActionHelpers, AssignData, Base, ContextProxy, Generators, ProjectorHelpers, Represents, Routing, Util Classes: Action, Config, Context, Controller, Dispatcher, Error, Projector, Railtie, Translations

Constant Summary collapse

VERSION =
'0.15.0'.freeze

Class Method Summary collapse

Class Method Details

.configObject



11
12
13
# File 'lib/granite.rb', line 11

def self.config
  Granite::Config.instance
end

.contextObject



15
16
17
# File 'lib/granite.rb', line 15

def self.context
  Granite::Context.instance
end