module Sunrise
Constants
- LOCALIZE_ABBR_MONTH_NAMES_MATCH
Regexp machers for context-based russian month names and day names translation
- LOCALIZE_MONTH_NAMES_MATCH
- LOCALIZE_STANDALONE_ABBR_DAY_NAMES_MATCH
- LOCALIZE_STANDALONE_DAY_NAMES_MATCH
- VERSION
Public Class Methods
activities()
click to toggle source
# File lib/sunrise.rb, line 64 def self.activities if defined?(Mongoid::Document) PublicActivity::Activity.desc(:created_at) else PublicActivity::Activity.order('created_at DESC') end end
root_path()
click to toggle source
# File lib/sunrise.rb, line 56 def self.root_path @root_path ||= Pathname.new(File.dirname(File.expand_path(__dir__))) end
setup() { |Config| ... }
click to toggle source
# File lib/sunrise.rb, line 60 def self.setup yield Config end