Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #34 from refinery/cleanup
Browse files Browse the repository at this point in the history
Remove redundant entries from Gemfile and specify friendly_id as dependency.
  • Loading branch information
simi committed Jan 21, 2014
2 parents 3afe53d + d2438a3 commit cb45252
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
13 changes: 4 additions & 9 deletions Gemfile
Expand Up @@ -2,18 +2,13 @@ source 'https://rubygems.org'

gemspec

gem 'json'
gem 'refinerycms', github: 'refinery/refinerycms', branch: 'master'
gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch: 'master'

gem 'friendly_id-globalize', github: 'norman/friendly_id-globalize', branch: 'master'
gem 'globalize'
gem 'paper_trail', github: 'airblade/paper_trail', branch: 'master'
gem 'awesome_nested_set', github: 'collectiveidea/awesome_nested_set', branch: 'master'
gem 'refinerycms', github: 'refinery/refinerycms'
gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n'
gem 'refinerycms-acts-as-indexed', github: 'refinery/refinerycms-acts-as-indexed'
gem "mime-types", "~> 1.25"

group :test do
gem 'refinerycms-testing', github: 'refinery/refinerycms', branch: 'master'
gem 'refinerycms-testing', github: 'refinery/refinerycms'
gem 'poltergeist'
gem 'pry'
gem 'pry-nav'
Expand Down
6 changes: 4 additions & 2 deletions app/models/refinery/setting.rb
@@ -1,3 +1,5 @@
require 'friendly_id'

module Refinery
class Setting < Refinery::Core::BaseModel
extend FriendlyId
Expand Down Expand Up @@ -76,7 +78,7 @@ def set(name, value)
setting.value
end
end

def title
self[:title].presence || auto_title
end
Expand Down Expand Up @@ -132,7 +134,7 @@ def replacements!(current_value)

current_value
end

# prettier version of the name.
# site_name becomes Site Name
def auto_title
Expand Down
1 change: 0 additions & 1 deletion lib/refinery/settings.rb
@@ -1,4 +1,3 @@
require 'json'
require 'refinerycms-core'

module Refinery
Expand Down
1 change: 1 addition & 0 deletions refinerycms-settings.gemspec
Expand Up @@ -17,4 +17,5 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- spec/*`.split("\n")

s.add_dependency 'refinerycms-core', '~> 3.0.0.dev'
s.add_dependency 'friendly_id', '~> 5.0.1'
end

0 comments on commit cb45252

Please sign in to comment.