blob: 9759f07586796f91f0165c43a867c42517962bf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require "inboxes/version"
require "inboxes/railtie"
require "inboxes/engine"
module Inboxes
# Your code goes here...
def self.configure(&block)
yield @config ||= Inboxes::Configuration.new
end
# Global settings for Inboxes
def self.config
@config
end
# need a Class for 3.0
class Configuration #:nodoc:
include ActiveSupport::Configurable
config_accessor :user_name
def param_name
config.param_name.respond_to?(:call) ? config.param_name.call() : config.param_name
end
end
end
|