Module: Cassiopeia
- Defined in:
- lib/cassiopeia/client.rb,
lib/cassiopeia.rb,
lib/cassiopeia/base.rb,
lib/cassiopeia/user.rb,
lib/cassiopeia/config.rb,
lib/cassiopeia/server.rb,
lib/cassiopeia/railtie.rb,
lib/cassiopeia/base_rack.rb,
lib/cassiopeia/rack_restore_request.rb,
lib/cassiopeia/tickets_controller_config.rb,
lib/cassiopeia/active_record_server_mixin.rb,
lib/cassiopeia/action_controller_client_mixin.rb,
lib/cassiopeia/action_controller_server_mixin.rb
Overview
Client
Defined Under Namespace
Modules: ActionControllerClientMixin, ActionControllerServerMixin, ActiveRecordServerMixin, Exception Classes: Base, BaseRack, CassiopeiaRequest, Client, RackRestoreRequest, Railtie, Server, TicketsControllerConfig, User
Constant Summary collapse
- VERSION =
'0.2.0'
- CONFIG =
DEFAULT_CONFIG.merge(@@conf)
- @@conf =
YAML::load(ERB.new((IO.read(CONFIG_PATH))).result).symbolize_keys
Class Method Summary collapse
Class Method Details
.enable ⇒ Object
21 22 23 24 25 26 |
# File 'lib/cassiopeia.rb', line 21 def enable ActionController::Base.send :extend, ActionControllerServerMixin ActiveRecord::Base.send :extend, ActiveRecordServerMixin ActionController::Base.send :extend, ActionControllerClientMixin puts "Cassiopeia #{VERSION} enabled" end |