Class: Hancock::Catalog::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hancock/catalog/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/hancock/catalog/configuration.rb', line 37

def initialize
  @item_image_styles  = {
    thumb: '128x128'
  }
  @items_per_page      = 10

  @item_images_image_styles = {
    thumb: '128x128'
  }

  @category_image_styles = {
    thumb: '128x128'
  }
  @category_per_page     = 10

  @category_images_image_styles = {
    thumb: '128x128'
  }

  @gallery_support = !!defined?(Hancock::Gallery)
  @seo_support = !!defined?(Hancock::Seo)
  @pages_support = !!defined?(Hancock::Pages)
  @cache_support  = !!defined?(Hancock::Cache)
  @insertions_support = true

  @breadcrumbs_on_rails_support = !!defined?(BreadcrumbsOnRails)

  @can_connect_items_with_pages = true
  @can_connect_category_with_pages = true

  @localize = Hancock.config.localize

  @model_settings_support = !!defined?(RailsAdminModelSettings)
  @user_abilities_support = !!defined?(RailsAdminUserAbilities)
  @ra_comments_support = !!defined?(RailsAdminComments)
  @watermark_support = !!defined?(PaperclipWatermark)
end

Instance Attribute Details

Returns the value of attribute breadcrumbs_on_rails_support.



25
26
27
# File 'lib/hancock/catalog/configuration.rb', line 25

def breadcrumbs_on_rails_support
  @breadcrumbs_on_rails_support
end

#cache_supportObject

Returns the value of attribute cache_support.



22
23
24
# File 'lib/hancock/catalog/configuration.rb', line 22

def cache_support
  @cache_support
end

#can_connect_category_with_pagesObject

Returns the value of attribute can_connect_category_with_pages.



28
29
30
# File 'lib/hancock/catalog/configuration.rb', line 28

def can_connect_category_with_pages
  @can_connect_category_with_pages
end

#can_connect_items_with_pagesObject

Returns the value of attribute can_connect_items_with_pages.



27
28
29
# File 'lib/hancock/catalog/configuration.rb', line 27

def can_connect_items_with_pages
  @can_connect_items_with_pages
end

#category_image_stylesObject

Returns the value of attribute category_image_styles.



14
15
16
# File 'lib/hancock/catalog/configuration.rb', line 14

def category_image_styles
  @category_image_styles
end

#category_images_image_stylesObject

Returns the value of attribute category_images_image_styles.



17
18
19
# File 'lib/hancock/catalog/configuration.rb', line 17

def category_images_image_styles
  @category_images_image_styles
end

#category_per_pageObject

Returns the value of attribute category_per_page.



15
16
17
# File 'lib/hancock/catalog/configuration.rb', line 15

def category_per_page
  @category_per_page
end

Returns the value of attribute gallery_support.



19
20
21
# File 'lib/hancock/catalog/configuration.rb', line 19

def gallery_support
  @gallery_support
end

#insertions_supportObject

Returns the value of attribute insertions_support.



23
24
25
# File 'lib/hancock/catalog/configuration.rb', line 23

def insertions_support
  @insertions_support
end

#item_image_stylesObject

Returns the value of attribute item_image_styles.



9
10
11
# File 'lib/hancock/catalog/configuration.rb', line 9

def item_image_styles
  @item_image_styles
end

#item_images_image_stylesObject

Returns the value of attribute item_images_image_styles.



12
13
14
# File 'lib/hancock/catalog/configuration.rb', line 12

def item_images_image_styles
  @item_images_image_styles
end

#items_per_pageObject

Returns the value of attribute items_per_page.



10
11
12
# File 'lib/hancock/catalog/configuration.rb', line 10

def items_per_page
  @items_per_page
end

#localizeObject

Returns the value of attribute localize.



30
31
32
# File 'lib/hancock/catalog/configuration.rb', line 30

def localize
  @localize
end

#model_settings_supportObject

Returns the value of attribute model_settings_support.



32
33
34
# File 'lib/hancock/catalog/configuration.rb', line 32

def model_settings_support
  @model_settings_support
end

#pages_supportObject

Returns the value of attribute pages_support.



21
22
23
# File 'lib/hancock/catalog/configuration.rb', line 21

def pages_support
  @pages_support
end

#ra_comments_supportObject

Returns the value of attribute ra_comments_support.



34
35
36
# File 'lib/hancock/catalog/configuration.rb', line 34

def ra_comments_support
  @ra_comments_support
end

#seo_supportObject

Returns the value of attribute seo_support.



20
21
22
# File 'lib/hancock/catalog/configuration.rb', line 20

def seo_support
  @seo_support
end

#user_abilities_supportObject

Returns the value of attribute user_abilities_support.



33
34
35
# File 'lib/hancock/catalog/configuration.rb', line 33

def user_abilities_support
  @user_abilities_support
end

#watermark_supportObject

Returns the value of attribute watermark_support.



35
36
37
# File 'lib/hancock/catalog/configuration.rb', line 35

def watermark_support
  @watermark_support
end