lib/active_remote/dsl.rb in active_remote-3.3.3 vs lib/active_remote/dsl.rb in active_remote-5.0.0.pre
- old
+ new
@@ -1,13 +1,12 @@
-require 'active_support/inflector'
+require "active_support/inflector"
module ActiveRemote
module DSL
extend ActiveSupport::Concern
module ClassMethods
-
# Whitelist enable attributes for serialization purposes.
#
# ====Examples
#
# # To only publish the :guid and :status attributes:
@@ -119,13 +118,13 @@
# Combine the namespace and service values, constantize them and return
# the class constant.
#
def _determine_service_class
- class_name = [ namespace, service_name ].join("/")
+ class_name = [namespace, service_name].join("/")
const_name = class_name.camelize
- return const_name.present? ? const_name.constantize : const_name
+ const_name.present? ? const_name.constantize : const_name
end
def _determine_service_name
underscored_name = self.name.underscore
"#{underscored_name}_service".to_sym