Skip to content

Instantly share code, notes, and snippets.

@nakaearth
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save nakaearth/cfcaf64e3111f861f421 to your computer and use it in GitHub Desktop.

Select an option

Save nakaearth/cfcaf64e3111f861f421 to your computer and use it in GitHub Desktop.

Revisions

  1. nakaearth revised this gist Jul 7, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion app_decorator_UserDecorator.rb
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    module UserDecorator
    def short_name
    name[0..5]
    name[0, 5]
    end
    end
  2. nakaearth revised this gist Jul 2, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion app_decorator_UserDecorator.rb
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    # coding: utf-8
    module UserDecorator
    def short_name
    name[0..5]
  3. nakaearth created this gist Jun 24, 2014.
    6 changes: 6 additions & 0 deletions app_decorator_UserDecorator.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # coding: utf-8
    module UserDecorator
    def short_name
    name[0..5]
    end
    end