Module: ShoppingMall
- Defined in:
- lib/shopping_mall.rb,
lib/shopping_mall/engine.rb,
lib/shopping_mall/version.rb,
lib/shopping_mall/escalator.rb,
lib/generators/shopping_mall/install_generator.rb
Defined Under Namespace
Modules: Generators
Classes: Engine, Escalator
Constant Summary
collapse
- DEFAULT_SPREE_EXCLUSIONS =
[
'Spree::Country',
'Spree::Property',
'Spree::Prototype',
'Spree::Role',
'Spree::RolesUser',
'Spree::State',
'Spree::TaxRate',
'Spree::Tracker',
'Spree::User',
'Spree::Zone',
'Spree::ZoneMember'
]
- ESCALATORS =
%w(Domain FirstSubdomain Subdomain)
- VERSION =
'0.0.3'
Class Method Summary
collapse
Class Method Details
26
27
28
|
# File 'lib/shopping_mall.rb', line 26
def self.configure
yield self if block_given?
end
|
.escalator ⇒ Object
38
39
40
|
# File 'lib/shopping_mall.rb', line 38
def self.escalator
@escalator ||= 'Subdomain'
end
|
.escalator=(escalator) ⇒ Object
42
43
44
|
# File 'lib/shopping_mall.rb', line 42
def self.escalator=(escalator)
@escalator = escalator
end
|
.escalator_class ⇒ Object
46
47
48
|
# File 'lib/shopping_mall.rb', line 46
def self.escalator_class
"Apartment::Elevators::#{escalator}".constantize
end
|
.excluded_models ⇒ Object
30
31
32
|
# File 'lib/shopping_mall.rb', line 30
def self.excluded_models
Apartment.excluded_models
end
|
.excluded_models=(models) ⇒ Object
34
35
36
|
# File 'lib/shopping_mall.rb', line 34
def self.excluded_models=(models)
Apartment.configure { |config| config.excluded_models = models }
end
|