Sha256: 51c71360c5acdfce6d07de3d4b24fdbe2312afcab0c00b8c90b35d2517a47f64
Contents?: true
Size: 1.81 KB
Versions: 2
Compression:
Stored size: 1.81 KB
Contents
module Crummy def self.configuration @configuration ||= Configuration.new end def self.configure yield configuration end class Configuration attr_accessor :format attr_accessor :links attr_accessor :skip_if_blank attr_accessor :html_separator attr_accessor :html_right_separator attr_accessor :xml_separator attr_accessor :xml_right_separator attr_accessor :html_list_separator attr_accessor :html_list_right_separator attr_accessor :first_class attr_accessor :last_class attr_accessor :ol_id attr_accessor :ol_class attr_accessor :li_class attr_accessor :microdata attr_accessor :last_crumb_linked attr_accessor :truncate attr_accessor :right_side def initialize @format = :html @html_separator = " » ".html_safe @html_right_separator = " » ".html_safe @xml_separator = "crumb" @xml_right_separator = "crumb" @html_list_separator = '' @html_list_right_separator = '' @skip_if_blank = true @links = true @first_class = '' @last_class = '' @ol_id = '' @ol_class = '' @li_class = '' @microdata = false @last_crumb_linked = true @truncate = nil @right_side = false end def active_li_class=(class_name) puts "CRUMMY: The 'active_li_class' option is DEPRECATED and will be removed from a future version" end def active_li_class puts "CRUMMY: The 'active_li_class' option is DEPRECATED and will be removed from a future version" end end if defined?(Rails::Railtie) require 'crummy/railtie' else require 'crummy/action_controller' require 'crummy/action_view' ActionController::Base.send :include, Crummy::ControllerMethods ActionView::Base.send :include, Crummy::ViewMethods end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
crummy-schema-dot-org-1.9.0 | lib/crummy.rb |
vinted-crummy-1.9.0 | lib/crummy.rb |