Module: Entitled::ClassMethods

Defined in:
lib/entitled/entitled.rb

Instance Method Summary collapse

Instance Method Details

#entitled(options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/entitled/entitled.rb', line 11

def entitled options={}
  
  helper_method :entitled_generate,
                :entitled_breadcrumbs,
                :entitled_headings,
                :entitled_tag,
                :entitled_up,
                :entitled_resources?,
                :entitled_resource_class?
    
  Titles.per_page          = options[:per_page]          if options[:per_page]
  Titles.prefix_exceptions = options[:prefix_exceptions] if options[:prefix_exceptions]
  Titles.site_title        = options[:site_title]        if options[:site_title]

  send :include, InstanceMethods
end