Module: TypeStation

Defined in:
lib/type_station.rb,
lib/type_station/dsl.rb,
lib/type_station/engine.rb,
lib/type_station/railtie.rb,
lib/type_station/version.rb,
app/models/type_station/page.rb,
lib/type_station/blocks/base.rb,
lib/type_station/blocks/field.rb,
lib/type_station/view_helpers.rb,
app/models/type_station/entity.rb,
lib/type_station/blocks/entity.rb,
lib/type_station/configuration.rb,
app/models/type_station/content.rb,
app/presenters/type_station/presenter.rb,
lib/type_station/concerns/templatable.rb,
lib/type_station/concerns/path_generator.rb,
app/presenters/type_station/base_presenter.rb,
app/presenters/type_station/page_presenter.rb,
app/helpers/type_station/application_helper.rb,
app/controllers/type_station/file_controller.rb,
app/controllers/type_station/admin_controller.rb,
app/controllers/type_station/pages_controller.rb,
app/presenters/type_station/content_presenter.rb,
app/presenters/type_station/admin_bar_presenter.rb,
app/controllers/type_station/admin/pages_controller.rb,
app/controllers/type_station/application_controller.rb,
app/controllers/type_station/admin/entities_controller.rb

Defined Under Namespace

Modules: Admin, ApplicationHelper, Blocks, Concerns, Version, ViewHelpers Classes: AdminBarPresenter, AdminController, ApplicationController, BasePresenter, Configuration, Content, ContentPresenter, DSL, Engine, Entity, FileController, Page, PageNotFoundError, PagePresenter, PageTemplateNameUndefined, PagesController, Presenter, Railtie, TypeStationError

Class Method Summary collapse

Class Method Details

.configObject

Global settings for TypeStation



13
14
15
# File 'lib/type_station/configuration.rb', line 13

def self.config
  @config
end

.configure {|@config ||= TypeStation::Configuration.new| ... } ⇒ Object

Configures global settings for TypeStation

TypeStation.configure do |config|
  config.model = User
end

Yields:



8
9
10
# File 'lib/type_station/configuration.rb', line 8

def self.configure(&block)
  yield @config ||= TypeStation::Configuration.new
end