Module: GraphStarter
- Defined in:
- lib/graph_starter.rb,
lib/graph_starter/engine.rb,
lib/graph_starter/railtie.rb,
lib/graph_starter/version.rb,
app/models/graph_starter/view.rb,
app/models/graph_starter/asset.rb,
app/models/graph_starter/group.rb,
app/models/graph_starter/image.rb,
app/models/graph_starter/model.rb,
app/models/graph_starter/rating.rb,
lib/graph_starter/configuration.rb,
lib/graph_starter/configuration.rb,
app/models/graph_starter/category.rb,
app/models/graph_starter/property.rb,
lib/graph_starter/query_authorizer.rb,
app/models/graph_starter/can_access.rb,
app/helpers/graph_starter/application_helper.rb,
app/presenters/graph_starter/asset_presenter.rb,
app/models/concerns/graph_starter/authorizable.rb,
app/controllers/graph_starter/assets_controller.rb,
app/controllers/graph_starter/groups_controller.rb,
app/controllers/graph_starter/models_controller.rb,
app/presenters/graph_starter/application_presenter.rb,
app/controllers/graph_starter/categories_controller.rb,
app/controllers/graph_starter/properties_controller.rb,
app/controllers/graph_starter/application_controller.rb,
app/controllers/graph_starter/authorizables_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, Authorizable
Classes: ApplicationController, ApplicationPresenter, Asset, AssetPresenter, AssetsController, AuthorizablesController, CanAccess, CategoriesController, Category, Configuration, Engine, Group, GroupsController, Image, Model, ModelsController, PropertiesController, Property, QueryAuthorizer, Railtie, Rating, View
Constant Summary
collapse
- VERSION =
"0.6.3"
- CONFIG =
Configuration.new
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
46
47
48
|
# File 'lib/graph_starter/configuration.rb', line 46
def self.configuration
CONFIG
end
|
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/graph_starter/configuration.rb', line 32
def self.configure(config_hash = nil)
if config_hash.nil?
yield CONFIG
else
config_hash.each do |key, value|
CONFIG.send("#{key}=", value)
end
end
errors = CONFIG.validation_errors
fail "GraphStarter validation errors: #{errors.inspect}" if errors.size > 0
end
|