Sha256: 3db3129a4d3b83d8c687b7d133ab95e8a1417fffed08c2d327c3051605af170c

Contents?: true

Size: 282 Bytes

Versions: 2

Compression:

Stored size: 282 Bytes

Contents

module CommandCommon
  extend ActiveSupport::Concern
  include Pleiades::Client

  included do
<% if options['user_related_files'] %>

    def current_user
      @user ||= User.find_by_line_id(@event.source.user_id)
    end
    alias_method :user, :current_user
<% end %>
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pleiades-0.1.3 lib/pleiades/generators/pleiades/setup/templates/command_common.erb
pleiades-0.1.2 lib/pleiades/generators/pleiades/setup/templates/command_common.erb