lib/pleiades/generators/pleiades/setup/templates/command_common.erb in pleiades-0.1.1 vs lib/pleiades/generators/pleiades/setup/templates/command_common.erb in pleiades-0.1.2

- old
+ new

@@ -1,14 +1,10 @@ module CommandCommon extend ActiveSupport::Concern + include Pleiades::Client 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'] %> +<% if options['user_related_files'] %> def current_user @user ||= User.find_by_line_id(@event.source.user_id) end alias_method :user, :current_user