Module: Clerk
- Defined in:
- lib/clerk-rails.rb,
lib/clerk/engine.rb,
lib/clerk/version.rb,
app/models/clerk/plan.rb,
app/models/clerk/role.rb,
app/models/clerk/client.rb,
app/models/clerk/account.rb,
app/jobs/clerk/application_job.rb,
app/models/concerns/clerk/errors.rb,
app/models/concerns/clerk/clerked.rb,
app/models/clerk/application_record.rb,
app/helpers/clerk/application_helper.rb,
app/mailers/clerk/application_mailer.rb,
app/controllers/clerk/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, Clerked, Errors Classes: Account, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Client, Configuration, Engine, Plan, Role
Constant Summary collapse
- VERSION =
'0.1.2'
Class Attribute Summary collapse
-
.config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/clerk-rails.rb', line 5 def config @config end |
Class Method Details
.configure {|config| ... } ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/clerk-rails.rb', line 7 def configure @config = Configuration.new yield config if Rails.env.development? config.environment = :development config.session_mode = :cookie_session config. = nil else client = Clerk::Client.first config.environment = client.environment.to_sym config.session_mode = client.session_mode.to_sym config. = client. end end |