sugar 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.26
1
+ 0.0.27
@@ -15,9 +15,9 @@ module Sugar
15
15
  when 'index'
16
16
  controller_name.camelize
17
17
  when 'new', 'create'
18
- "#{t('new', :default => 'New')} #{controller_name.classify.constantize.human_name}"
18
+ "#{t('krasivotokak.sugar.new', :default => 'New')} #{controller_name.classify.constantize.human_name}"
19
19
  when 'edit', 'update'
20
- "#{t('edit', :default => 'Editing')} #{controller_name.classify.constantize.human_name}"
20
+ "#{t('krasivotokak.sugar.edit', :default => 'Editing')} #{controller_name.classify.constantize.human_name}"
21
21
  else
22
22
  t("#{controller_name}.#{view_name}.title")
23
23
  end
@@ -41,7 +41,7 @@ module Sugar
41
41
  # Put submit with proper text
42
42
  def submit(form, title = nil)
43
43
  title ||= t("#{controller.controller_name}.#{view_name}.submit",
44
- :default => form.object.new_record? ? "#{t('create', :default => 'Add')} #{form.object.class.human_name}" : "#{t('update', :default => 'Save')} #{form.object.class.human_name}")
44
+ :default => form.object.new_record? ? "#{t('krasivotokak.sugar.create', :default => 'Add')} #{form.object.class.human_name}" : "#{t('krasivotokak.sugar.update', :default => 'Save')} #{form.object.class.human_name}")
45
45
  form.submit(title)
46
46
  end
47
47
 
data/sugar.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sugar}
8
- s.version = "0.0.26"
8
+ s.version = "0.0.27"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Semyonov"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sugar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Semyonov