Sha256: 74e3a347347ae8f304d993c6a9dd648830a9af43940326326bcac398f6a47b9c
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
module CommandCommon extend ActiveSupport::Concern included do def client @client ||= Line::Bot::Client.new { |config| config.channel_secret = ENV['LINE_CHANNEL_SECRET'] config.channel_token = ENV['LINE_CHANNEL_TOKEN'] } end<% 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pleiades-0.1.1 | lib/pleiades/generators/pleiades/setup/templates/command_common.erb |