Sha256: 65256d4e1967811a6d3542b14a73f423871a01a73451475aca48f4eb9b90629a

Contents?: true

Size: 252 Bytes

Versions: 93

Compression:

Stored size: 252 Bytes

Contents

module Tenon
  class MySettings < RailsSettings::Settings
    self.table_name = 'settings'
    def self.full_url
      if self.site_url.match(/https?:\/\//)
        self.site_url
      else
        "http://#{self.site_url}"
      end
    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
tenon-1.1.8 app/models/tenon/my_settings.rb
tenon-1.1.7 app/models/tenon/my_settings.rb
tenon-1.1.6 app/models/tenon/my_settings.rb
tenon-2.1.0 app/models/tenon/my_settings.rb
tenon-2.0.8 app/models/tenon/my_settings.rb
tenon-2.0.7 app/models/tenon/my_settings.rb
tenon-2.0.6 app/models/tenon/my_settings.rb
tenon-2.0.5 app/models/tenon/my_settings.rb
tenon-2.0.4 app/models/tenon/my_settings.rb
tenon-2.0.3 app/models/tenon/my_settings.rb
tenon-2.0.2 app/models/tenon/my_settings.rb
tenon-2.0.1 app/models/tenon/my_settings.rb
tenon-2.0.0 app/models/tenon/my_settings.rb
tenon-1.1.5 app/models/tenon/my_settings.rb
tenon-1.1.4 app/models/tenon/my_settings.rb
tenon-1.1.3 app/models/tenon/my_settings.rb
tenon-1.1.2 app/models/tenon/my_settings.rb
tenon-1.1.1 app/models/tenon/my_settings.rb
tenon-1.0.76 app/models/tenon/my_settings.rb
tenon-1.0.75 app/models/tenon/my_settings.rb